|
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 javax.swing.AbstractButton javax.swing.JButton com.jidesoft.swing.JideButton com.jidesoft.swing.HeaderBox com.jidesoft.pivot.FieldBox
public class FieldBox
The component that represents a field in pivot table.
Nested Class Summary | |
---|---|
class |
FieldBox.ArrowIcon
|
Nested classes/interfaces inherited from class javax.swing.JButton |
---|
JButton.AccessibleJButton |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
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 | |
---|---|
protected Object |
HIDE_POPUP_KEY
|
static String |
PROPERTY_ASCENDING
|
static String |
PROPERTY_FILTER
|
static String |
PROPERTY_FILTER_BUTTON_VISIBLE
|
static String |
PROPERTY_POSSIBLE_VALUES
|
static String |
PROPERTY_SELECTED_POSSIBLE_VALUES
|
static String |
PROPERTY_SORT_ARROW_VISIBLE
|
static String |
PROPERTY_SORT_BY
|
static String |
PROPERTY_SORT_ORDER
|
Fields inherited from class com.jidesoft.swing.HeaderBox |
---|
CLIENT_PROPERTY_TABLE_CELL_EDITOR |
Fields inherited from class com.jidesoft.swing.JideButton |
---|
CLIENT_PROPERTY_HIDE_POPUPMENU, PROPERTY_ALWAYS_SHOW_HYPERLINK |
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 com.jidesoft.swing.Alignable |
---|
PROPERTY_ORIENTATION |
Fields inherited from interface com.jidesoft.swing.ButtonStyle |
---|
BUTTON_STYLE_PROPERTY, CLIENT_PROPERTY_SEGMENT_POSITION, FLAT_STYLE, HYPERLINK_STYLE, SEGMENT_POSITION_FIRST, SEGMENT_POSITION_LAST, SEGMENT_POSITION_MIDDLE, SEGMENT_POSITION_ONLY, TOOLBAR_STYLE, TOOLBOX_STYLE |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
FieldBox()
Creates a button with no set text or icon. |
|
FieldBox(PivotField field)
|
|
FieldBox(PivotField field,
boolean sortArrowVisible,
boolean filterButtonVisible)
|
|
FieldBox(PivotField field,
Icon icon)
|
|
FieldBox(PivotField field,
String title)
|
|
FieldBox(PivotField field,
String title,
Icon icon)
|
|
FieldBox(PivotField field,
String title,
Icon icon,
boolean sortArrowVisible,
boolean filterButtonVisible)
|
|
FieldBox(PivotField field,
String title,
Icon icon,
String description,
boolean sortArrowVisible,
boolean filterButtonVisible)
|
Method Summary | |
---|---|
void |
addDynamicTableFilter(DynamicTableFilter filter)
Add a DynamicTableFilter . |
protected Point |
calculatePopupLocation(PopupPanel popupPanel)
calculate the popup location. |
protected CustomFilterEditor |
createCustomFilterEditor(FilterFactoryManager filterFactoryManager,
Class<?> type,
ConverterContext converterContext,
Object[] possibleValues)
Creates the CustomFilterEditor used in the FieldBox's custom filter drop down list. |
protected AbstractButton |
createDefaultButton()
Creates the default combobox button. |
protected PopupPanel |
createPopupPanel(PivotTablePane pivotTablePane,
PivotField field,
Object[] possibleValues)
|
protected JidePopup |
createPopupWindow()
Creates the popup window. |
protected void |
customizePopupWindow(JidePopup popup,
PopupPanel popupPanel)
|
Dimension |
getActualPreferredSize()
|
DynamicTableFilter[] |
getDynamicTableFilters()
Gets all the DynamicTableFilter s. |
PivotField |
getField()
|
Filter |
getFilter()
|
PivotTablePane |
getPivotTablePane()
|
Object[] |
getPossibleValues()
|
Dimension |
getPreferredSize()
|
Object[] |
getSelectedPossibleValues()
|
void |
hidePopup()
Causes the combo box to close its popup window. |
protected void |
initComponents(PivotField field,
String text,
Icon icon,
String description,
boolean sortArrowVisible,
boolean filterButtonVisible)
|
protected void |
installListeners()
|
boolean |
isAscending()
|
boolean |
isFilterButtonVisible()
Gets the filter button visible flag. |
boolean |
isPopupVisible()
Determines the visibility of the popup. |
boolean |
isSortArrowVisible()
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
removeDynamicTableFilter(DynamicTableFilter filter)
Removes a DynamicTableFilter which was added earlier. |
void |
setAscending(boolean ascending)
|
void |
setFilter(Filter filter)
|
void |
setFilterButtonVisible(boolean filterButtonVisible)
Sets the filter button visible flag. |
void |
setFont(Font font)
|
void |
setIcon(Icon icon)
|
void |
setPivotTablePane(PivotTablePane pivotTablePane)
|
void |
setPossibleValues(Object[] possibleValues)
|
void |
setSelectedPossibleValues(Object[] selectedPossibleValues)
|
void |
setSortArrowVisible(boolean sortArrowVisible)
|
void |
setTitle(String title)
|
void |
toggleAscending()
|
protected void |
uninstallListeners()
|
void |
updateFilterIcon()
|
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
Methods inherited from class com.jidesoft.swing.HeaderBox |
---|
getUIClassID |
Methods inherited from class com.jidesoft.swing.JideButton |
---|
getBackgroundOfState, getButtonStyle, getDefaultForeground, getForegroundOfState, getOrientation, isAlwaysShowHyperlink, setAlwaysShowHyperlink, setBackgroundOfState, setButtonStyle, setDefaultForeground, setForegroundOfState, setOrientation, setRolloverEnabled, setText, supportHorizontalOrientation, supportVerticalOrientation |
Methods inherited from class javax.swing.JButton |
---|
getAccessibleContext, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jidesoft.swing.AlignmentSupport |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Field Detail |
---|
public static final String PROPERTY_SORT_ARROW_VISIBLE
public static final String PROPERTY_FILTER_BUTTON_VISIBLE
public static final String PROPERTY_ASCENDING
public static final String PROPERTY_SORT_ORDER
public static final String PROPERTY_SORT_BY
public static final String PROPERTY_POSSIBLE_VALUES
public static final String PROPERTY_SELECTED_POSSIBLE_VALUES
public static final String PROPERTY_FILTER
protected Object HIDE_POPUP_KEY
Constructor Detail |
---|
public FieldBox()
public FieldBox(PivotField field)
public FieldBox(PivotField field, String title)
public FieldBox(PivotField field, Icon icon)
public FieldBox(PivotField field, String title, Icon icon)
public FieldBox(PivotField field, boolean sortArrowVisible, boolean filterButtonVisible)
public FieldBox(PivotField field, String title, Icon icon, boolean sortArrowVisible, boolean filterButtonVisible)
public FieldBox(PivotField field, String title, Icon icon, String description, boolean sortArrowVisible, boolean filterButtonVisible)
Method Detail |
---|
protected void initComponents(PivotField field, String text, Icon icon, String description, boolean sortArrowVisible, boolean filterButtonVisible)
protected void installListeners()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void addDynamicTableFilter(DynamicTableFilter filter)
DynamicTableFilter
. DynamicTableFilter
allows to add your own customize filter to
the drop down filter list. Any DynamicTableFilter
will become an entry in the list. If user clicks
on that entry, the filter will be used to filter the column. What's special about DynamicTableFilter
is it allows to to create a filter on fly. For example, in initializeFilter method of DynamicTableFilter, you can
pop up a dialog to allow user to select certain information and you return a filter based on user selection.
filter
- a DynamicTableFilter
.public void removeDynamicTableFilter(DynamicTableFilter filter)
DynamicTableFilter
which was added earlier.
filter
- a DynamicTableFilter
.public DynamicTableFilter[] getDynamicTableFilters()
DynamicTableFilter
s.
DynamicTableFilter
s.public void updateFilterIcon()
protected void uninstallListeners()
public boolean isSortArrowVisible()
public void setSortArrowVisible(boolean sortArrowVisible)
public boolean isFilterButtonVisible()
public void setFilterButtonVisible(boolean filterButtonVisible)
PivotTablePane.isShowFilterButtonsOnMouseOver()
returns false, this flag itself
controls the visibility of the filter button. However, if PivotTablePane.isShowFilterButtonsOnMouseOver()
returns true, this flag just means that if the filter button could be visible when the mouse is over the FieldBox.
filterButtonVisible
- the flagPivotTablePane.isShowFilterButtonsOnMouseOver()
public void setTitle(String title)
public void setIcon(Icon icon)
setIcon
in class JideButton
public void setFont(Font font)
setFont
in class JComponent
public boolean isAscending()
public void toggleAscending()
public void setAscending(boolean ascending)
public Object[] getPossibleValues()
public void setPossibleValues(Object[] possibleValues)
public void setSelectedPossibleValues(Object[] selectedPossibleValues)
public void setFilter(Filter filter)
public Object[] getSelectedPossibleValues()
public Filter getFilter()
protected AbstractButton createDefaultButton()
protected JidePopup createPopupWindow()
protected PopupPanel createPopupPanel(PivotTablePane pivotTablePane, PivotField field, Object[] possibleValues)
protected CustomFilterEditor createCustomFilterEditor(FilterFactoryManager filterFactoryManager, Class<?> type, ConverterContext converterContext, Object[] possibleValues)
filterFactoryManager
- the FilterFactoryManager.type
- the type.converterContext
- the ConverterContext.possibleValues
- the possible values.
protected void customizePopupWindow(JidePopup popup, PopupPanel popupPanel)
protected Point calculatePopupLocation(PopupPanel popupPanel)
popupPanel
- the PopupPanel
public void hidePopup()
public boolean isPopupVisible()
public PivotField getField()
public PivotTablePane getPivotTablePane()
public void setPivotTablePane(PivotTablePane pivotTablePane)
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public Dimension getActualPreferredSize()
public void updateUI()
HeaderBox
updateUI
in class HeaderBox
JComponent.updateUI()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |