|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.Container echopoint.EchoPointComponent echopoint.FontChooser
Nested Class Summary | |
protected class |
FontChooser.DefaultPreviewPanel
The default preview pane |
static class |
FontChooser.NestedStyleInfo
Nested 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 nextapp.echo.Color |
borderColor
|
protected int |
borderSize
|
protected boolean |
changeSelectFieldFonts
|
static nextapp.echo.Font |
DEFAULT_FONT
the default font |
static nextapp.echo.Insets |
DEFAULT_INSETS
|
protected java.lang.String[] |
fntNames
|
protected int[] |
fntSizes
|
protected java.lang.String[] |
fntStyles
|
static java.lang.String |
FONT_NAMES_CHANGED_PROPERTY
the public property change names |
static java.lang.String |
FONT_SIZES_CHANGED_PROPERTY
|
protected nextapp.echo.Insets |
insets
|
static java.lang.String |
INSETS_CHANGED_PROPERTY
|
static java.lang.String |
PREVIEW_PANEL_CHANGED_PROPERTY
|
protected nextapp.echo.Component |
previewPanel
|
protected nextapp.echo.SelectField |
selectFontNames
|
protected nextapp.echo.SelectField |
selectFontSizes
|
protected nextapp.echo.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_COLOR
A style constant for the Border Color property. |
static java.lang.String |
STYLE_BORDER_SIZE
A style constant for the Border Size property. |
static java.lang.String |
STYLE_CHANGE_SELECT_FIELD
A style constant for the Change Select Field property. |
static java.lang.String |
STYLE_INSETS
A style constant for the Insets property. |
static java.lang.String |
STYLE_SELECTED_FONT
A 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 class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
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 with Color.WHITE selected |
|
FontChooser(nextapp.echo.Font newSelectedFont)
Constructs a FontChooser with newSelectedFont selected |
Method Summary | |
void |
actionPerformed(nextapp.echo.event.ActionEvent e)
The FontChooser listens to its own SelectField events |
void |
addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the FontChooser. |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
nextapp.echo.Color |
getBorderColor()
|
int |
getBorderSize()
|
java.lang.String[] |
getFontNames()
|
nextapp.echo.SelectField |
getFontNamesSelectField()
|
int[] |
getFontSizes()
|
nextapp.echo.SelectField |
getFontSizesSelectField()
|
nextapp.echo.SelectField |
getFontStylesSelectField()
|
nextapp.echo.Insets |
getInsets()
|
nextapp.echo.Component |
getPreviewPanel()
|
nextapp.echo.Font |
getSelectedFont()
|
FontSelectionModel |
getSelectionModel()
|
TitleBar |
getTitle()
|
boolean |
isChangeSelectFieldFont()
|
boolean |
isFontNamesShowing()
|
boolean |
isFontSizesShowing()
|
boolean |
isFontStylesShowing()
|
void |
removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from this component. |
protected void |
reRegisterComponents(nextapp.echo.Component oldValue,
nextapp.echo.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(nextapp.echo.Color newBorderColor)
Sets the border Color of the FontChooser .
|
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)
|
void |
setFontNames(java.lang.String[] newValue)
Sets the arrayu of Font Names used by the FontChooser
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
FontChooser.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 FontChooser
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
FontChooser.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(nextapp.echo.Insets newValue)
Sets the Insets used by the FontChooser
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
FontChooser.INSETS_CHANGED_PROPERTY |
void |
setPreviewPane(nextapp.echo.Component newPreviewPanel)
Sets the Component used by the FontChooser as a preview panel.
|
void |
setSelectedFont(nextapp.echo.Font newSelectedFont)
Sets the currently selected Font of the FontChooser
This methods causes the underlying FontSelectionModel to
change. |
void |
setSelectionModel(FontSelectionModel newModel)
Sets the FontSelectionModel model used by the FontChooser .
|
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 nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setFont, setForeground, setIdentifier, setLocale, setVisible, update |
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 nextapp.echo.Insets DEFAULT_INSETS
protected nextapp.echo.Color borderColor
protected int borderSize
protected nextapp.echo.Insets insets
protected nextapp.echo.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 nextapp.echo.Font DEFAULT_FONT
protected boolean changeSelectFieldFonts
protected java.lang.String[] fntNames
protected int[] fntSizes
protected java.lang.String[] fntStyles
protected nextapp.echo.SelectField selectFontNames
protected nextapp.echo.SelectField selectFontSizes
protected nextapp.echo.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(nextapp.echo.Font newSelectedFont)
FontChooser
with newSelectedFont
selected
Method Detail |
public void actionPerformed(nextapp.echo.event.ActionEvent e)
actionPerformed
in interface nextapp.echo.event.ActionListener
public void addChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
to the FontChooser.
l
- The ChangeListener
to be added.public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface MouseCursorable
applyStyle
in class EchoPointComponent
Component.applyStyle(nextapp.echo.Style)
public nextapp.echo.Color getBorderColor()
Color
of the FontChooser's
border.public int getBorderSize()
FontChooser's
border.public java.lang.String[] getFontNames()
public nextapp.echo.SelectField getFontNamesSelectField()
SelectField
of the FontChooser
.public int[] getFontSizes()
FontChooser
.public nextapp.echo.SelectField getFontSizesSelectField()
SelectField
of the FontChooser
.public nextapp.echo.SelectField getFontStylesSelectField()
SelectField
of the FontChooser
.public nextapp.echo.Insets getInsets()
Insets
(margins) of the FontChooser
.public nextapp.echo.Component getPreviewPanel()
Component
currently used by the FontChooser
.public nextapp.echo.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(nextapp.echo.event.ChangeListener l)
l
- the ChangeListener to removeprotected void reRegisterComponents(nextapp.echo.Component oldValue, nextapp.echo.Component newValue)
public void setBorderColor(nextapp.echo.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(nextapp.echo.Insets newValue)
Insets
used by the FontChooser
PropertyChangeEvent
with a
getPropertyName()
value of
FontChooser.INSETS_CHANGED_PROPERTY
public void setPreviewPane(nextapp.echo.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(nextapp.echo.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(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 ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |