|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.jidesoft.combobox.AbstractComboBox com.jidesoft.combobox.FontComboBox
public class FontComboBox
FontComboBox
is a combobox which can be used to choose a Font
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class com.jidesoft.combobox.AbstractComboBox |
---|
_dialog, _editable, _editor, _listDataListener, _oldSelectedItemReminder, _popupButton, _popupPanel, _renderer, actionCommand, CLIENT_PROPERTY_HIDE_POPUP_ON_LIST_DATA_CHANGED, CLIENT_PROPERTY_TABLE_CELL_EDITOR, CLIENT_PROPERTY_TABLE_CELL_RENDERER, COMMIT, COMMIT_OR_RESET, COMMIT_OR_REVERT, dataModel, DIALOG, DROPDOWN, HIDE_POPUP_KEY, PERSIST, PROPERTY_SELECTED_ITEM, RESET, REVERT, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
FontComboBox()
Creates a new FontComboBox using ColorChooserPanel with 40 colors. |
|
FontComboBox(Font font)
Creates a new FontComboBox . |
Method Summary | |
---|---|
AbstractComboBox.EditorComponent |
createEditorComponent()
Subclass should implement this method to create the actual editor component. |
protected PopupPanel |
createFontChooserPanel()
Creates a FontChooserPanel as the popup. |
PopupPanel |
createPopupComponent()
Creates a FontChooserPanel as the popup. |
Font |
getSelectedFont()
Gets selected font. |
protected boolean |
isUpdateFromPopupOnFly()
This is a flag used internally. |
void |
setSelectedFont(Font font)
Sets selected font. |
protected void |
updateFontFromEditorComponent()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FontComboBox()
FontComboBox
using ColorChooserPanel with 40 colors.
public FontComboBox(Font font)
FontComboBox
.
font
- the fontMethod Detail |
---|
public AbstractComboBox.EditorComponent createEditorComponent()
AbstractComboBox
createEditorComponent
in class AbstractComboBox
public PopupPanel createPopupComponent()
PopupPanel panel = new FontChooserPanel(
new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hidePopup();
}
},
new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hidePopup();
}
}
);
return panel;
Subclass can override this method to provide your own FontChooserPanel.
createPopupComponent
in class AbstractComboBox
protected PopupPanel createFontChooserPanel()
public Font getSelectedFont()
protected void updateFontFromEditorComponent()
public void setSelectedFont(Font font)
font
- the fontprotected boolean isUpdateFromPopupOnFly()
AbstractComboBox
isUpdateFromPopupOnFly
in class AbstractComboBox
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |