public class FontChooser extends LiveObject
| Modifier and Type | Field and Description |
|---|---|
boolean |
bold |
boolean |
chooseName |
boolean |
chooseSize |
boolean |
chooseStyle |
static boolean |
dontShowDifferentFonts
If this is set true, then the text in the drop-down menu for Fonts will
be in the same Font instead of being rendered in their own face.
|
String |
font |
protected static Vector |
fontItems |
static String[] |
fonts |
boolean |
italic |
int |
size |
boolean |
underline |
| Constructor and Description |
|---|
FontChooser() |
FontChooser(boolean chooseStyle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_getSetField(String fieldName,
Wrapper wrapper,
boolean isGet)
This is used for data transfer using a eve.data.FieldTransfer object.
|
void |
action(String fieldName,
Editor ed)
This gets called by action(FieldTransfer ft,Editor ed) and by fieldChanged(FieldTransfer ft,Editor ed)
if the field changed is a menu item.
|
void |
addToPanel(CellPanel cp,
Editor ed,
int which)
Override this to provide the user interface for editing the Object.
|
void |
fieldChanged(String fieldName,
Editor ed)
This gets called by fieldChanged(FieldTransfer ft,Editor ed).
|
void |
fromFont(Font f) |
protected ScrollablePanel |
getEditorScroller(CellPanel cp)
This is called by the default getEditor() should return a ScrollBarPanel for the CellPanel that the editor
is being placed in.
|
Font |
toFont() |
action, addMeToPanel, addObjectToPanel, editorCanExit, enableEditorScrolling, fieldChanged, fieldEvent, getEditor, getIcon, getName, input, isNamed, liveMain, main, makeNewEditor, menuItemSelected, prepareMainPanel, runAsApp, setToEditor, willBeSetToEditorgetParentObject, getParentObject, setParentObjectdecode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode_getFieldType, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNewclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTotextDecode, textEncodepublic static boolean dontShowDifferentFonts
public static String[] fonts
protected static Vector fontItems
public int size
public String font
public boolean bold
public boolean italic
public boolean underline
public boolean chooseStyle
public boolean chooseSize
public boolean chooseName
public FontChooser()
public FontChooser(boolean chooseStyle)
public boolean _getSetField(String fieldName, Wrapper wrapper, boolean isGet)
DataObjectBy default this method calls PropertyList.getSetProperties() on this Object.
_getSetField in class DataObjectfieldName - the field name.wrapper - a non-null Wrapper that receives or provides the field data.isGet - if this is true then it is a get operation (in which case you should set
the value of data to be the field value) if it is false it is a set operation and
the value of data should be assigned to the field.protected ScrollablePanel getEditorScroller(CellPanel cp)
LiveObjectYou may return null from this.
getEditorScroller in class LiveObjectpublic void addToPanel(CellPanel cp, Editor ed, int which)
LiveObjectaddToPanel in class LiveObjectpublic void fromFont(Font f)
public Font toFont()
public void action(String fieldName, Editor ed)
LiveObjectaction in class LiveObjectpublic void fieldChanged(String fieldName, Editor ed)
LiveObjectfieldChanged in class LiveObject