|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.builder.cls.AbstractGenerator
public abstract class AbstractGenerator
Constructor Summary | |
---|---|
AbstractGenerator() |
Method Summary | |
---|---|
protected void |
addDetails(JavaManager mgr, SourceFile file, SourceClass cls) |
protected static void |
enableTree(java.awt.Component root, boolean isEnabled) |
protected java.lang.String |
escapeString(java.lang.String inString) |
void |
generate(JavaManager mgr, SourceFile srcFile) Tells the Generator to add whatever custom code it requires. |
javax.swing.JComponent |
getAttributes(java.lang.String baseType) Provides the Attributes panel supported by this Generator. |
java.lang.String |
getClassDescription(java.lang.String baseType) Provides a description of the class being generated by this UIGenerator. |
protected Context |
getContext() |
java.lang.String[] |
getLibraries(java.lang.String baseType) Provides a list of JDeveloper libraries required by the code generated by this Generator for the specified base type. |
protected Project |
getProject() |
protected Workspace |
getWorkspace() |
void |
setContext(Context ctx) Sets the context in which the generator is being accessed. |
void |
setEnabled(boolean isEnabled) Sets the enabled state of all UI present on the object returned by getAttributes. |
boolean |
validateAttributes() Allows the supplied Attributes panel to be validated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractGenerator()
Method Detail |
---|
public javax.swing.JComponent getAttributes(java.lang.String baseType)
Generator
getAttributes
in interface Generator
baseType
- The base class for which the attributes are requested.JContainer
object representing the available attributes for the base class.public void setEnabled(boolean isEnabled)
Generator
setEnabled
in interface Generator
isEnabled
- The enabled state to set all UI controls to.public final void generate(JavaManager mgr, SourceFile srcFile)
Generator
generate
in interface Generator
mgr
- The JavaManager
object representing the current project.srcFile
- The SourceFile
object representing the new file.public java.lang.String getClassDescription(java.lang.String baseType)
Generator
getClassDescription
in interface Generator
baseType
- The base class of the class.public java.lang.String[] getLibraries(java.lang.String baseType)
Generator
getLibraries
in interface Generator
baseType
- The base class for which the list of libraries are requested.public void setContext(Context ctx)
Generator
setContext
in interface Generator
protected Context getContext()
protected Project getProject()
protected Workspace getWorkspace()
public boolean validateAttributes()
Generator
ClassBuilderPanel.validateAndWriteToState(oracle.jdeveloper.wizard.common.BaliWizardState)
validateAttributes
in interface Generator
true
if the settings in the Attributes panel are valid, and false
otherwise.protected void addDetails(JavaManager mgr, SourceFile file, SourceClass cls)
protected static final void enableTree(java.awt.Component root, boolean isEnabled)
protected final java.lang.String escapeString(java.lang.String inString)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |