public class FacetEditorImpl extends UnnamedConfigurableGroup implements UnnamedConfigurable, FacetEditor
Constructor and Description |
---|
FacetEditorImpl(FacetEditorContext context,
FacetConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
javax.swing.JComponent |
getComponent() |
FacetEditorContext |
getContext() |
<T extends FacetEditorTab> |
getEditorTab(java.lang.Class<T> aClass) |
FacetEditorTab[] |
getEditorTabs() |
java.lang.String |
getHelpTopic() |
void |
onFacetAdded(Facet facet) |
void |
onFacetSelected() |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
setSelectedTabName(java.lang.String tabName) |
add, apply, isModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, cancel, isModified
public FacetEditorImpl(FacetEditorContext context, FacetConfiguration configuration)
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class UnnamedConfigurableGroup
public javax.swing.JComponent getComponent()
public javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
createComponent
in class UnnamedConfigurableGroup
null
if it cannot be createdUnnamedConfigurable.disposeUIResources()
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
disposeUIResources
in class UnnamedConfigurableGroup
public java.lang.String getHelpTopic()
public void onFacetAdded(Facet facet)
public void setSelectedTabName(java.lang.String tabName)
public FacetEditorContext getContext()
public void onFacetSelected()
public FacetEditorTab[] getEditorTabs()
getEditorTabs
in interface FacetEditor
public <T extends FacetEditorTab> T getEditorTab(java.lang.Class<T> aClass)
getEditorTab
in interface FacetEditor