|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.JComponentModelCustomizerPanel
public class JComponentModelCustomizerPanel
JComponentModelCustomizerPanel 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.
| Field Summary | |
|---|---|
protected javax.swing.JRadioButton |
detachModel
|
protected javax.swing.ListSelectionModel |
listSelectionModel
|
protected javax.swing.JList |
modelList
|
protected java.beans.PropertyEditor |
propertyEditor
|
protected java.lang.Object |
propValue
|
protected static java.lang.String |
RB_KEY
|
protected javax.swing.JLabel |
selectModel
|
protected boolean |
settingModel
|
protected java.lang.Object |
swingBean
|
| 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 | |
|---|---|
JComponentModelCustomizerPanel(java.lang.String tabName)
Constructor used pass the name of the tab up to the superclass. |
|
| Method Summary | |
|---|---|
void |
customizerClosing()
customizerClosing() is called when the customizer for a component is closed. |
protected boolean |
hasDefaultModelAttached()
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
setDefaultValues()
Create the UI controls for customizing instances of VisualInterface. |
protected void |
setModelSelected()
Set the selectedItem in the list to correspond to the attached model |
void |
setObject(java.lang.Object bean)
Sets the Object being customized. |
void |
valueChanged(javax.swing.event.ListSelectionEvent event)
Handles valueChanged events |
| Methods inherited from class com.sas.swing.visuals.SwingCustomizerPanel |
|---|
getObject, getTabTitle, setTabTitle |
| Field Detail |
|---|
protected static final java.lang.String RB_KEY
protected javax.swing.JLabel selectModel
protected javax.swing.JRadioButton detachModel
protected javax.swing.JList modelList
protected java.beans.PropertyEditor propertyEditor
protected javax.swing.ListSelectionModel listSelectionModel
protected java.lang.Object propValue
protected boolean settingModel
protected java.lang.Object swingBean
| Constructor Detail |
|---|
public JComponentModelCustomizerPanel(java.lang.String tabName)
| Method Detail |
|---|
public void setDefaultValues()
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 valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged in interface javax.swing.event.ListSelectionListenerevent - ListSelectionEventprotected void setModelSelected()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerprotected boolean hasDefaultModelAttached()
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 | |||||||||||||