Package org.gvsig.gui.beans.filterPanel
Class AbstractFilterQueryJPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.gui.beans.panelGroup.panels.AbstractPanel
org.gvsig.gui.beans.filterPanel.AbstractFilterQueryJPanel
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Comparable<IPanel>,Accessible,IPanel
- Direct Known Subclasses:
FilterQueryJPanel,TableFilterQueryJPanel
This abstract class represents the common components of the FilterQuery panels
- Author:
- Pablo Piqueras Bartolomé (p_queras@hotmail.com)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classJButton with multi line tool tip text.protected classJCheckBox with multi line tool tip text.protected classEditable text area with multi line tool tip text.protected classJLabel with multi line tool tip text.protected classJList with multi line tool tip text.protected classJPanel with multi line tool tip text.protected classJCrollPane with multi line tool tip text.protected classJTree with multi line tool tip text.Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractFilterQueryJPanel.JPanelMLprotected final intprotected final intstatic final intprotected final intprotected final intprotected DefaultTreeModelstatic final intprotected intprotected intprotected AbstractFilterQueryJPanel.JLabelMLprotected AbstractFilterQueryJPanel.JPanelMLprotected final intprotected final intprotected AbstractFilterQueryJPanel.JScrollPaneMLprotected AbstractFilterQueryJPanel.JTreeMLprotected FilterButtonsJPanelprotected final intprotected final intprotected AbstractFilterQueryJPanel.JScrollPaneMLprotected intprotected intprotected Stringprotected AbstractFilterQueryJPanel.JPanelMLprotected AbstractFilterQueryJPanel.JLabelMLprotected AbstractFilterQueryJPanel.JListMLprotected AbstractFilterQueryJPanel.JPanelMLprotected final intprotected final intprotected AbstractFilterQueryJPanel.JScrollPaneMLprotected DefaultListModelFields inherited from class org.gvsig.gui.beans.panelGroup.panels.AbstractPanel
hasChanged, remainsWithDefaultPreferredSizeFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionThis is the default constructorAbstractFilterQueryJPanel(String _title) This is the default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()Notifies to this panel of an accept action.voidapply()Notifies this panel of an apply action.voidcancel()Notifies this panel of a cancel action.Returns a set with all symbols used as operatorsprotected abstract JPanelThis method initializes bottomJPanelprotected JLabelThis method initializes fieldsJLabelprotected abstract JPanelThis method initializes fieldsJPanelprotected abstract JScrollPaneThis method initializes jScrollPaneprotected JTreeThis method initializes fieldsJTreeprotected JPanelThis method initializes filterButtonsJPanelprotected abstract JScrollPaneThis method initializes filterJScrollPaneprotected abstract JPanelThis method initializes topJPanelprotected abstract JTextAreaThis method initializes txtExpressionprotected JLabelThis method initializes valuesJLabelprotected abstract JListThis method initializes valuesJListprotected abstract JPanelThis method initializes valuesJPanelprotected abstract JScrollPaneThis method initializes jScrollPane1protected voidThis method initializes thisprotected static StringInserts an string at a position of another one.protected voidAdds a symbol to the filter expression.voidresize(int width, int height) voidvoidresizeHeight(int new_Height) Sets new height to the 'topJPanel', (new Height must be bigger than default, else do nothing)abstract voidresizeWidth(int new_Width) Sets the width to this JPanelvoidselected()Notifies this panel that has been selected at theAbstractPanelGroupMethods inherited from class org.gvsig.gui.beans.panelGroup.panels.AbstractPanel
compareTo, getID, getLabel, getLabelGroup, getPanelGroup, getPriority, getReference, hasChanged, isAlwaysApplicable, isInGroupGUI, remainsWithItsDefaultPreferredSize, resetChangedStatus, setAlwaysApplicable, setID, setInGroupGUI, setLabel, setLabelGroup, setPanelGroup, setPreferredSize, setPriority, setReference, toStringMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
DefaultHeight
public static final int DefaultHeight- See Also:
-
DefaultWidth
public static final int DefaultWidth- See Also:
-
fieldsJPanelHeight
protected final int fieldsJPanelHeight- See Also:
-
fieldsJPanelWidth
protected final int fieldsJPanelWidth- See Also:
-
valuesJPanelHeight
protected final int valuesJPanelHeight- See Also:
-
valuesJPanelWidth
protected final int valuesJPanelWidth- See Also:
-
defaultBottomJPanelWidth
protected final int defaultBottomJPanelWidth- See Also:
-
defaultBottomJPanelHeight
protected final int defaultBottomJPanelHeight- See Also:
-
filterJScrollPaneHeight
protected int filterJScrollPaneHeight -
filterJScrollPanelWidth
protected int filterJScrollPanelWidth -
filterButtonsPanelHeight
protected final int filterButtonsPanelHeight- See Also:
-
filterButtonsPanelWidth
protected final int filterButtonsPanelWidth- See Also:
-
defaultTopJPanelWidth
protected final int defaultTopJPanelWidth- See Also:
-
defaultTopJPanelHeight
protected final int defaultTopJPanelHeight- See Also:
-
fieldsAndValuesJScrollPaneHeight
protected int fieldsAndValuesJScrollPaneHeight -
fieldsAndValuesJScrollPaneWidth
protected int fieldsAndValuesJScrollPaneWidth -
fieldsJLabel
-
valuesJLabel
-
fieldsJPanel
-
valuesJPanel
-
filterButtonsJPanel
-
filterJScrollPane
-
topJPanel
-
bottomJPanel
-
txtExpression
-
fieldsJTree
-
valuesJList
-
fieldsJScrollPane
-
valuesJScrollPane
-
title
-
defaultTreeModel
-
valuesListModel
-
-
Constructor Details
-
AbstractFilterQueryJPanel
This is the default constructor -
AbstractFilterQueryJPanel
public AbstractFilterQueryJPanel()This is the default constructor
-
-
Method Details
-
initialize
protected void initialize()This method initializes this- Specified by:
initializein classAbstractPanel
-
getTopJPanel
This method initializes topJPanel- Returns:
- javax.swing.JPanel
-
getBottomJPanel
This method initializes bottomJPanel- Returns:
- javax.swing.JPanel
-
getFieldsJLabel
This method initializes fieldsJLabel- Returns:
- javax.swing.JLabel
-
getValuesJList
This method initializes valuesJList- Returns:
- javax.swing.JList
-
getFieldsJPanel
This method initializes fieldsJPanel- Returns:
- javax.swing.JPanel
-
getFieldsJScrollPane
This method initializes jScrollPane- Returns:
- javax.swing.JScrollPane
-
getValuesJLabel
This method initializes valuesJLabel- Returns:
- javax.swing.JLabel
-
getValuesJPanel
This method initializes valuesJPanel- Returns:
- javax.swing.JPanel
-
getValuesJScrollPane
This method initializes jScrollPane1- Returns:
- javax.swing.JScrollPane
-
getFilterJScrollPane
This method initializes filterJScrollPane- Returns:
- javax.swing.JScrollPane
-
getTxtExpression
This method initializes txtExpression- Returns:
- javax.swing.JTextArea
-
putSymbol
Adds a symbol to the filter expression.- Parameters:
symbol- symbol to add
-
getFieldsJTree
This method initializes fieldsJTree- Returns:
- org.gvsig.gui.beans.swing.jTree
-
insert
Inserts an string at a position of another one.- Parameters:
base- original string where will be insertedposition- position at the string where will be insertedgraft- string to insert- Returns:
- the new string with the graft inserted in
-
getFilterButtonsJPanel
This method initializes filterButtonsJPanel- Returns:
- javax.swing.JPanel
-
getAllOperatorSymbols
Returns a set with all symbols used as operators- Returns:
- A set
-
resizeHeight
public void resizeHeight(int new_Height) Sets new height to the 'topJPanel', (new Height must be bigger than default, else do nothing)- Parameters:
new_Height- New height
-
resizeWidth
public abstract void resizeWidth(int new_Width) Sets the width to this JPanel- Parameters:
new_Width- New width
-
resize
public void resize(int width, int height) -
resize
-
accept
public void accept()Description copied from interface:IPanelNotifies to this panel of an accept action.
-
apply
public void apply()Description copied from interface:IPanelNotifies this panel of an apply action.
-
cancel
public void cancel()Description copied from interface:IPanelNotifies this panel of a cancel action.
-
selected
public void selected()Description copied from interface:IPanelNotifies this panel that has been selected at the
AbstractPanelGroup
-