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, willBeSetToEditor
getParentObject, getParentObject, setParentObject
decode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode
_getFieldType, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
textDecode, textEncode
public 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)
DataObject
By default this method calls PropertyList.getSetProperties() on this Object.
_getSetField
in class DataObject
fieldName
- 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)
LiveObject
You may return null from this.
getEditorScroller
in class LiveObject
public void addToPanel(CellPanel cp, Editor ed, int which)
LiveObject
addToPanel
in class LiveObject
public void fromFont(Font f)
public Font toFont()
public void action(String fieldName, Editor ed)
LiveObject
action
in class LiveObject
public void fieldChanged(String fieldName, Editor ed)
LiveObject
fieldChanged
in class LiveObject