|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.injection.reverseeng.propertypages.DefaultPropertyPage
Default implementation of the property page interface.
Field Summary | |
protected EventListenerList |
m_ellListeners
|
private boolean |
m_fEnabled
|
private Icon |
m_iIcon
|
private JComponent |
m_jcComponent
|
private PropertyPageEvent |
m_ppeTheEvent
Only one event is needed per PropertyPage. |
private String |
m_sTitle
|
private String |
m_sToolTip
|
Constructor Summary | |
DefaultPropertyPage()
Creates new DefaultPropertyPage. |
|
DefaultPropertyPage(JComponent jcComponent)
Creates new enabled DefaultPropertyPage with a component, but no title, icon or tool tip. |
|
DefaultPropertyPage(JComponent jcComponent,
boolean fEnabled)
Creates new DefaultPropertyPage with a component, but no title, icon or tool tip. |
|
DefaultPropertyPage(String sTitle,
Icon iIcon,
JComponent jcComponent)
Creates new enabled DefaultPropertyPage with a component, title and icon, but no tool tip. |
|
DefaultPropertyPage(String sTitle,
Icon iIcon,
JComponent jcComponent,
boolean fEnabled)
Creates new DefaultPropertyPage with a component, title and icon, but no tool tip. |
|
DefaultPropertyPage(String sTitle,
JComponent jcComponent)
Creates new enabled DefaultPropertyPage with a component and title, but no icon or tool tip. |
|
DefaultPropertyPage(String sTitle,
JComponent jcComponent,
boolean fEnabled)
Creates new DefaultPropertyPage with a component and title, but no icon or tool tip. |
|
DefaultPropertyPage(String sTitle,
String sToolTip,
Icon iIcon,
JComponent jcComponent)
Creates new enabled DefaultPropertyPage with a component, title, icon and tool tip. |
|
DefaultPropertyPage(String sTitle,
String sToolTip,
Icon iIcon,
JComponent jcComponent,
boolean fEnabled)
Creates new DefaultPropertyPage with a component, title and icon, and tool tip. |
Method Summary | |
void |
addPropertyPageListener(PropertyPageListener ppl)
Start notifying the specified listener of events regarding this property page. |
protected void |
fireComponentChanged()
|
protected void |
fireEnabledChanged()
|
protected void |
fireIconChanged()
|
protected void |
fireTitleChanged()
|
protected void |
fireToolTipChanged()
|
JComponent |
getComponent()
Return the component to be displayed as the property page contents. |
Icon |
getIcon()
Return the icon to be displayed in the property page's tab. |
String |
getTitle()
Return the text to be displayed in the property page's tab. |
String |
getToolTip()
Return the tool tip text to be associated with the property page. |
boolean |
isEnabled()
Is the property page enabled? |
void |
onPropertyPageRemoved(PropertyPageContainer ppcParent)
Invoked by the property page container to indicate removal of the page from the container. |
void |
removePropertyPageListener(PropertyPageListener ppl)
Stop notifying the specified listener of events regarding this property page. |
void |
setComponent(JComponent jcNewComponent)
Set the component to represent this property page. |
void |
setEnabled(boolean fEnabled)
Set the enabled state of this property page. |
void |
setIcon(Icon iNewIcon)
Set the icon to be associated with this property page. |
void |
setTitle(String sNewTitle)
Set the title to be associated with this property page. |
void |
setToolTip(String sNewToolTip)
Set the tool tip text to be associated with this property page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String m_sTitle
private String m_sToolTip
private Icon m_iIcon
private JComponent m_jcComponent
private boolean m_fEnabled
protected EventListenerList m_ellListeners
private final PropertyPageEvent m_ppeTheEvent
Constructor Detail |
public DefaultPropertyPage()
public DefaultPropertyPage(JComponent jcComponent)
jcComponent
- the component to be displayed as the property page.public DefaultPropertyPage(JComponent jcComponent, boolean fEnabled)
jcComponent
- the component to be displayed as the property page.fEnabled
- if false, the property page will be initially disabled.public DefaultPropertyPage(String sTitle, JComponent jcComponent)
sTitle
- the title of the property page.jcComponent
- the component to be displayed as the property page.public DefaultPropertyPage(String sTitle, JComponent jcComponent, boolean fEnabled)
sTitle
- the title of the property page.jcComponent
- the component to be displayed as the property page.fEnabled
- if false, the property page will be initially disabled.public DefaultPropertyPage(String sTitle, Icon iIcon, JComponent jcComponent)
sTitle
- the title of the property page.iIcon
- the icon to be associated with the property page.jcComponent
- the component to be displayed as the property page.public DefaultPropertyPage(String sTitle, Icon iIcon, JComponent jcComponent, boolean fEnabled)
sTitle
- the title of the property page.iIcon
- the icon to be associated with the property page.jcComponent
- the component to be displayed as the property page.fEnabled
- if false, the property page will be initially disabled.public DefaultPropertyPage(String sTitle, String sToolTip, Icon iIcon, JComponent jcComponent)
sTitle
- the title of the property page.sToolTip
- the tool tip to be associated with the property page.iIcon
- the icon to be associated with the property page.jcComponent
- the component to be displayed as the property page.public DefaultPropertyPage(String sTitle, String sToolTip, Icon iIcon, JComponent jcComponent, boolean fEnabled)
sTitle
- the title of the property page.sToolTip
- the tool tip to be associated with the property page.iIcon
- the icon to be associated with the property page.jcComponent
- the component to be displayed as the property page.fEnabled
- if false, the property page will be initially disabled.Method Detail |
public Icon getIcon()
getIcon
in interface PropertyPage
public void setIcon(Icon iNewIcon)
public String getTitle()
getTitle
in interface PropertyPage
public void setTitle(String sNewTitle)
public String getToolTip()
getToolTip
in interface PropertyPage
public void setToolTip(String sNewToolTip)
public JComponent getComponent()
getComponent
in interface PropertyPage
public void setComponent(JComponent jcNewComponent)
public boolean isEnabled()
isEnabled
in interface PropertyPage
public void setEnabled(boolean fEnabled)
public void addPropertyPageListener(PropertyPageListener ppl)
addPropertyPageListener
in interface PropertyPage
ppl
- The property page listener to receive the events.public void removePropertyPageListener(PropertyPageListener ppl)
removePropertyPageListener
in interface PropertyPage
ppl
- The property page listener to be removed from the list of evcent receivers.protected void fireComponentChanged()
protected void fireEnabledChanged()
protected void fireIconChanged()
protected void fireTitleChanged()
protected void fireToolTipChanged()
public void onPropertyPageRemoved(PropertyPageContainer ppcParent)
onPropertyPageRemoved
in interface PropertyPage
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |