|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.FontPanel
public class FontPanel
The FontPanel is a panel to be displayed in an instance of FontDialog. It provides the interface which allows the user to create a java.awt.Font object.
Field Summary | |
---|---|
ComboBox |
comboName
|
ComboBox |
comboSize
|
ComboBox |
comboStyle
|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
FontPanel()
|
Method Summary | |
---|---|
java.awt.Font |
getSelectedFont()
|
void |
initialize()
The initialize() method was designed to be a synchronization point after the constructor for the object has completed and a number of methods have been called on the component. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Handles any property links on this component from the source component. |
void |
setSelectedFont(java.awt.Font ft)
|
protected void |
updateFont()
|
Methods inherited from class com.sas.awt.Panel |
---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, remove, remove, removeAll, setDefaultHeight, setDefaultValues, setDefaultWidth |
Methods inherited from interface com.sas.awt.ContainerInterface |
---|
getComponents, getLayout, invalidate, setLayout, validate |
Field Detail |
---|
public static final java.lang.String RB_KEY
public ComboBox comboName
public ComboBox comboStyle
public ComboBox comboSize
Constructor Detail |
---|
public FontPanel()
Method Detail |
---|
public void initialize()
ComponentInterface
initialize() should be called on a component after is it constructed :
ListBox listBox = new ListBox(); listBox.initialize(); container.add( listBox );
Overriding initialize is now discouraged since it is generally better to override setDefaultValues and readObject to perform initialization.
By default (in the ComponentInterface implementation), initialize() does nothing. However, various components override initialize() to perform operations, and it should be called.
Although use of initialize() is now discouraged, initialize() is also called by the validateObject method after a component is deserialized. This allows components which need processing during creation and deserialization to have a common place to perform operations. Adding event handlers to subcomponents is a typical use of the initialize method.
initialize
in interface com.sas.ComponentInterface
initialize
in class PanelVisualComponent
ComponentInterface.initialize()
protected void updateFont()
public void propertyChange(java.beans.PropertyChangeEvent e)
PanelVisualComponent
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class PanelVisualComponent
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public java.awt.Font getSelectedFont()
public void setSelectedFont(java.awt.Font ft)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |