| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Container
echopoint.EchoPointComponent
echopoint.FontChooser
public class FontChooser
| Nested Class Summary | |
|---|---|
| protected  class | FontChooser.DefaultPreviewPanelThe default preview pane | 
| static class | FontChooser.NestedStyleInfoNested public static StyleInfo class. | 
| Field Summary | |
|---|---|
| static java.lang.String | APPEARANCE_CHANGED_PROPERTY | 
| static java.lang.String | BORDER_COLOR_CHANGED_PROPERTY | 
| static java.lang.String | BORDER_SIZE_CHANGED_PROPERTY | 
| protected  Color | borderColor | 
| protected  int | borderSize | 
| protected  boolean | changeSelectFieldFonts | 
| static Font | DEFAULT_FONTthe default font | 
| static Insets | DEFAULT_INSETS | 
| protected  java.lang.String[] | fntNames | 
| protected  int[] | fntSizes | 
| protected  java.lang.String[] | fntStyles | 
| static java.lang.String | FONT_NAMES_CHANGED_PROPERTYthe public property change names | 
| static java.lang.String | FONT_SIZES_CHANGED_PROPERTY | 
| protected  Insets | insets | 
| static java.lang.String | INSETS_CHANGED_PROPERTY | 
| static java.lang.String | PREVIEW_PANEL_CHANGED_PROPERTY | 
| protected  Component | previewPanel | 
| protected  SelectField | selectFontNames | 
| protected  SelectField | selectFontSizes | 
| protected  SelectField | selectFontStyles | 
| static java.lang.String | SELECTION_MODEL_CHANGED_PROPERTY | 
| protected  FontSelectionModel | selectionModel | 
| protected  boolean | showFontNames | 
| protected  boolean | showFontSizes | 
| protected  boolean | showFontStyles | 
| static java.lang.String | STYLE_BORDER_COLORA style constant for the Border Color property. | 
| static java.lang.String | STYLE_BORDER_SIZEA style constant for the Border Size property. | 
| static java.lang.String | STYLE_CHANGE_SELECT_FIELDA style constant for the Change Select Field property. | 
| static java.lang.String | STYLE_INSETSA style constant for the Insets property. | 
| static java.lang.String | STYLE_SELECTED_FONTA style constant for the Selected Font property. | 
| static java.lang.String | TITLE_CHANGED_PROPERTY | 
| protected  TitleBar | titleBar | 
| Fields inherited from class echopoint.EchoPointComponent | 
|---|
| STYLE_TOOL_TIP_TEXT, TOOL_TIP_TEXT_CHANGED_PROPERTY, toolTipPopUp | 
| Fields inherited from interface echopoint.positionable.MouseCursorable | 
|---|
| borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI | 
| Constructor Summary | |
|---|---|
| FontChooser()Constructs a FontChooser withColor.WHITEselected | |
| FontChooser(Font newSelectedFont)Constructs a FontChooserwithnewSelectedFontselected | |
| Method Summary | |
|---|---|
|  void | actionPerformed(ActionEvent e)The FontChooser listens to its own SelectField events | 
|  void | addChangeListener(ChangeListener l)Adds a ChangeListenerto the FontChooser. | 
|  void | applyStyle(Style style)Applies the provided style to the component. | 
|  Color | getBorderColor() | 
|  int | getBorderSize() | 
|  java.lang.String[] | getFontNames() | 
|  SelectField | getFontNamesSelectField() | 
|  int[] | getFontSizes() | 
|  SelectField | getFontSizesSelectField() | 
|  SelectField | getFontStylesSelectField() | 
|  Insets | getInsets() | 
|  Component | getPreviewPanel() | 
|  Font | getSelectedFont() | 
|  FontSelectionModel | getSelectionModel() | 
|  TitleBar | getTitle() | 
|  boolean | isChangeSelectFieldFont() | 
|  boolean | isFontNamesShowing() | 
|  boolean | isFontSizesShowing() | 
|  boolean | isFontStylesShowing() | 
|  void | removeChangeListener(ChangeListener l)Removes a ChangeListener from this component. | 
| protected  void | reRegisterComponents(Component oldValue,
                     Component newValue) | 
|  java.lang.Object | set(java.lang.reflect.Field field,
    java.lang.Object newValue)Called to save the old value of a field, set in a new value and return the old value of a field. | 
|  void | setBorderColor(Color newBorderColor)Sets the border Colorof theFontChooser. | 
|  void | setBorderSize(int newBorderSize)Sets the border size of the FontChooser. | 
|  void | setChangeSelectFieldFont(boolean newValue)Sets whether the font of SelectFields of the FontChooser.is will be changed
 to reflect the currently selected Font.. | 
|  void | setEnabled(boolean newValue)Sets whether the component is enabled. | 
|  void | setFontNames(java.lang.String[] newValue)Sets the arrayu of Font Names used by the FontChooserThis methods fires a PropertyChangeEventwith agetPropertyName()value ofFontChooser.FONT_NAMES_CHANGED_PROPERTY | 
|  void | setFontNamesShowing(boolean newValue)Sets whether the Font Names SelectField of the FontChooser.is showing. | 
|  void | setFontSizes(int[] newValue)Sets the array of Font Sizes used by the FontChooserThis methods fires a PropertyChangeEventwith agetPropertyName()value ofFontChooser.FONT_SIZES_CHANGED_PROPERTY | 
|  void | setFontSizesShowing(boolean newValue)Sets whether the Font Sizes SelectField of the FontChooser.is showing. | 
|  void | setFontStylesShowing(boolean newValue)Sets whether the Font Styles SelectField of the FontChooser.is showing. | 
|  void | setInsets(Insets newValue)Sets the Insetsused by theFontChooserThis methods fires a PropertyChangeEventwith agetPropertyName()value ofFontChooser.INSETS_CHANGED_PROPERTY | 
|  void | setPreviewPane(Component newPreviewPanel)Sets the Componentused by theFontChooseras a preview panel. | 
|  void | setSelectedFont(Font newSelectedFont)Sets the currently selected Fontof theFontChooserThis methods causes the underlying FontSelectionModelto
 change. | 
|  void | setSelectionModel(FontSelectionModel newModel)Sets the FontSelectionModelmodel used by theFontChooser. | 
|  void | setTitle(java.lang.String newTitleText)Sets the text of the title TitleBar used by the FontChooser. | 
|  void | setTitle(TitleBar newTitleBar)Sets the title used by the FontChooser. | 
| Methods inherited from class echopoint.EchoPointComponent | 
|---|
| getMouseCursor, getMouseCursorURI, getToolTipPopUp, getToolTipText, set, set, set, set, set, set, set, set, set, setEnabledAllChildren, setMouseCursor, setMouseCursorURI, setToolTipText, validate | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String STYLE_BORDER_COLOR
nextapp.echo.Color.
public static final java.lang.String STYLE_BORDER_SIZE
int
public static final java.lang.String STYLE_CHANGE_SELECT_FIELD
boolean
public static final java.lang.String STYLE_INSETS
nextapp.echo.Insets.
public static final java.lang.String STYLE_SELECTED_FONT
nextapp.echo.Font.
public static final java.lang.String SELECTION_MODEL_CHANGED_PROPERTY
public static final java.lang.String PREVIEW_PANEL_CHANGED_PROPERTY
public static final java.lang.String TITLE_CHANGED_PROPERTY
public static final java.lang.String BORDER_COLOR_CHANGED_PROPERTY
public static final java.lang.String BORDER_SIZE_CHANGED_PROPERTY
public static final java.lang.String INSETS_CHANGED_PROPERTY
public static final Insets DEFAULT_INSETS
protected Color borderColor
protected int borderSize
protected Insets insets
protected Component previewPanel
protected FontSelectionModel selectionModel
public static final java.lang.String APPEARANCE_CHANGED_PROPERTY
public static final java.lang.String FONT_NAMES_CHANGED_PROPERTY
public static final java.lang.String FONT_SIZES_CHANGED_PROPERTY
public static final Font DEFAULT_FONT
protected boolean changeSelectFieldFonts
protected java.lang.String[] fntNames
protected int[] fntSizes
protected java.lang.String[] fntStyles
protected SelectField selectFontNames
protected SelectField selectFontSizes
protected SelectField selectFontStyles
protected boolean showFontNames
protected boolean showFontSizes
protected boolean showFontStyles
protected TitleBar titleBar
| Constructor Detail | 
|---|
public FontChooser()
FontChooser  with Color.WHITE selected
public FontChooser(Font newSelectedFont)
FontChooser with newSelectedFont selected
| Method Detail | 
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The event describing the action.public void addChangeListener(ChangeListener l)
ChangeListener to the FontChooser.
l - The ChangeListener to be added.public void applyStyle(Style style)
nextapp.echo.Component
 style names can be used as well.
applyStyle in interface MouseCursorableapplyStyle in interface ComponentapplyStyle in class EchoPointComponentstyle - The style object from which to retrieve properties for this
            Component.Component.applyStyle(nextapp.echo.Style)public Color getBorderColor()
Color of the FontChooser's border.public int getBorderSize()
FontChooser's border.public java.lang.String[] getFontNames()
public SelectField getFontNamesSelectField()
SelectField of the FontChooser.public int[] getFontSizes()
FontChooser.public SelectField getFontSizesSelectField()
SelectField of the FontChooser.public SelectField getFontStylesSelectField()
SelectField of the FontChooser.public Insets getInsets()
Insets (margins) of the FontChooser.public Component getPreviewPanel()
Component currently used by the FontChooser.public Font getSelectedFont()
public FontSelectionModel getSelectionModel()
FontSelectionModel model of the FontChooser.public TitleBar getTitle()
FontChooser.public boolean isChangeSelectFieldFont()
public boolean isFontNamesShowing()
public boolean isFontSizesShowing()
public boolean isFontStylesShowing()
public void removeChangeListener(ChangeListener l)
l - the ChangeListener to remove
protected void reRegisterComponents(Component oldValue,
                                    Component newValue)
public void setBorderColor(Color newBorderColor)
Color of the FontChooser.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.BORDER_COLOR_CHANGED_PROPERTY
public void setBorderSize(int newBorderSize)
FontChooser.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.BORDER_SIZE_CHANGED_PROPERTY
public void setChangeSelectFieldFont(boolean newValue)
FontChooser.is will be changed
 to reflect the currently selected Font..
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.APPEARANCE_CHANGED_PROPERTY
public void setFontNames(java.lang.String[] newValue)
FontChooser
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.FONT_NAMES_CHANGED_PROPERTY
public void setFontNamesShowing(boolean newValue)
FontChooser.is showing.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.APPEARANCE_CHANGED_PROPERTY
public void setFontSizes(int[] newValue)
FontChooser
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.FONT_SIZES_CHANGED_PROPERTY
public void setFontSizesShowing(boolean newValue)
FontChooser.is showing.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.APPEARANCE_CHANGED_PROPERTY
public void setFontStylesShowing(boolean newValue)
FontChooser.is showing.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.APPEARANCE_CHANGED_PROPERTY
public void setInsets(Insets newValue)
Insets used by the FontChooser
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.INSETS_CHANGED_PROPERTY
public void setPreviewPane(Component newPreviewPanel)
Component used by the FontChooser as a preview panel.
 Component should implement ChangeEventListener and
 then call addChangeListener to ensure it is notified of changes to the
 underlying ColorSelectionModel model.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.PREVIEW_PANEL_CHANGED_PROPERTY
public void setSelectedFont(Font newSelectedFont)
Font of the FontChooser
 FontSelectionModel to
 change.
public void setSelectionModel(FontSelectionModel newModel)
FontSelectionModel model used by the FontChooser.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.SELECTION_MODEL_CHANGED_PROPERTY
public void setTitle(TitleBar newTitleBar)
FontChooser.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.TITLE_CHANGED_PROPERTY
public void setTitle(java.lang.String newTitleText)
FontChooser.
 PropertyChangeEvent with a
 getPropertyName() value of 
 FontChooser.TITLE_CHANGED_PROPERTY
public void setEnabled(boolean newValue)
Component
setEnabled in interface ComponentsetEnabled in class AbstractComponentnewValue - True if the component is enabled.Component.setEnabled(boolean)
public java.lang.Object set(java.lang.reflect.Field field,
                            java.lang.Object newValue)
                     throws java.lang.Exception
ReflectionSetter
 public Object set(Field f, Object newValue) throws Exception {
      Object oldValue = f.get(this);
      f.set(this,newValue);
      return oldValue;
 }
 
set in interface ReflectionSetterfield - - the field to be setnewValue - - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ExceptionReflectionSetter.set(Field, Object)| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||