|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.JComponentCustomizerPanel
public class JComponentCustomizerPanel
JComponentCustomizerPanel provides the user interface for customizing components which implement the javax.swing.JComponent. It allows editting of the foreground color, background color, font, border, visibility, and enable state of the component.
| Fields inherited from class com.sas.swing.visuals.SwingCustomizerPanel |
|---|
bean, tabTitle |
| Fields inherited from interface com.sas.swing.visuals.util.LayoutConstants |
|---|
DOTS_BUTTON_INSETS, EMPTY_INSETS, HGAP, HMARGIN, INDENTED_BORDER, TAB_BORDER, TEXTFIELD_INSETS, VGAP, VMARGIN |
| Constructor Summary | |
|---|---|
JComponentCustomizerPanel(java.lang.String tabName)
Constructor used pass the name of the tab up to the superclass. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
protected javax.swing.JTextField |
addLabelAndField(java.awt.Container container,
java.lang.String label)
|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
protected java.awt.Container |
createBorderContainer()
|
protected java.awt.Container |
createBoundsContainer()
|
protected java.awt.Container |
createColorContainer()
|
protected java.awt.Container |
createFontContainer()
|
protected java.awt.Container |
createToolTipContainer()
|
protected java.awt.Container |
createVisibleEnabledContainer()
|
void |
customizerClosing()
customizerClosing() is called when the customizer for a component is closed. |
void |
focusGained(java.awt.event.FocusEvent ev)
|
void |
focusLost(java.awt.event.FocusEvent ev)
|
com.sas.swing.property.PropertyEditorHost |
getBackgroundHost()
Returns the PropertyEditorHost that the background color uses to set the value. |
com.sas.swing.property.PropertyEditorHost |
getBorderHost()
Returns the PropertyEditorHost that the border uses to set the value. |
com.sas.swing.property.PropertyEditorHost |
getFontHost()
Returns the PropertyEditorHost that the font uses to set the value. |
com.sas.swing.property.PropertyEditorHost |
getForegroundHost()
Returns the PropertyEditorHost that the foreground color uses to set the value. |
void |
itemStateChanged(java.awt.event.ItemEvent evt)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Handle PropertyChangeEvents from the PropertyEditorHosts. |
void |
setDefaultValues()
Create the UI controls for customizing instances of VisualInterface. |
void |
setObject(java.lang.Object bean)
Sets the Object being customized. |
void |
updateBorderText()
|
void |
updateToolTipText()
|
| Methods inherited from class com.sas.swing.visuals.SwingCustomizerPanel |
|---|
getObject, getTabTitle, setTabTitle |
| Field Detail |
|---|
protected static final java.lang.String RB_KEY
protected com.sas.swing.property.PropertyEditorHost fgColorHost
protected com.sas.swing.property.PropertyEditorHost bgColorHost
protected com.sas.swing.property.PropertyEditorHost fontHost
protected com.sas.swing.property.PropertyEditorHost borderHost
protected javax.swing.JCheckBox visible
protected javax.swing.JCheckBox enabled
protected javax.swing.JCheckBox transparent
protected javax.swing.JTextField xField
protected javax.swing.JTextField yField
protected javax.swing.JTextField widthField
protected javax.swing.JTextField heightField
protected javax.swing.JTextField sampleText
protected javax.swing.JTextField borderText
protected javax.swing.JTextField toolTip
protected SpinBox borderMargin
protected javax.swing.JLabel labelBorderMargin
protected javax.swing.JPanel fontContainer
protected javax.swing.JPanel borderContainer
protected javax.swing.JPanel borderTextContainer
protected javax.swing.JPanel borderMarginContainer
protected javax.swing.JPanel spacer
protected com.sas.PropertyLinkAdaptor propertyLinkAdaptor0in
protected com.sas.PropertyLinkAdaptor propertyLinkAdaptor0out
protected JTextFieldValidator xValidator
protected JTextFieldValidator yValidator
protected JTextFieldValidator widthValidator
protected JTextFieldValidator heightValidator
protected boolean colorContainerCreated
protected boolean fontContainerCreated
protected boolean boundsContainerCreated
protected boolean borderContainerCreated
protected boolean visibleEnabledContainerCreated
protected boolean tooltipContainerCreated
| Constructor Detail |
|---|
public JComponentCustomizerPanel(java.lang.String tabName)
| Method Detail |
|---|
protected javax.swing.JTextField addLabelAndField(java.awt.Container container,
java.lang.String label)
public void setDefaultValues()
protected java.awt.Container createColorContainer()
protected java.awt.Container createFontContainer()
protected java.awt.Container createBoundsContainer()
protected java.awt.Container createBorderContainer()
protected java.awt.Container createVisibleEnabledContainer()
protected java.awt.Container createToolTipContainer()
public com.sas.swing.property.PropertyEditorHost getFontHost()
public com.sas.swing.property.PropertyEditorHost getForegroundHost()
public com.sas.swing.property.PropertyEditorHost getBackgroundHost()
public com.sas.swing.property.PropertyEditorHost getBorderHost()
public void setObject(java.lang.Object bean)
SwingCustomizerPanel
setObject in interface java.beans.CustomizersetObject in class SwingCustomizerPanelbean - the Object being customized.Customizer.setObject(java.lang.Object)public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void focusGained(java.awt.event.FocusEvent ev)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent ev)
focusLost in interface java.awt.event.FocusListenerpublic void updateBorderText()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerpublic void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged in interface java.awt.event.ItemListenerpublic void updateToolTipText()
public void customizerClosing()
SwingCustomizerPanelcustomizerClosing() should "unhook" the bean from the customizer by removing any event listeners the panel added to the bean.
Subclasses should call super in case we add some functionality to this method in the future.
customizerClosing in interface com.sas.beans.CustomizerClosingInterfacecustomizerClosing in class SwingCustomizerPanel
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||