Package org
Class FolderPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.FolderPanel
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
public class FolderPanel extends JComponent
- Author:
- Christian Klukas (c) 2004 IPK-Gatersleben
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FolderPanel.Iconsize
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
-
Field Summary
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
Constructors Constructor Description FolderPanel(String title)
FolderPanel(String title, boolean openCondensed, boolean showCondenseButton, boolean sortRows, ActionListener helpActionListener)
FolderPanel(String title, boolean sortRows, ActionListener helpActionListener, String helpTopic)
-
Method Summary
Modifier and Type Method Description void
addCollapseListener(ActionListener listener)
void
addCollapseListenerDialogSizeUpdate()
void
addComp(JComponent comp)
void
addComp(JComponent component, int border)
void
addDefaultTextSearchFilter()
void
addDefaultTextSearchFilterFixed(String optFixedSearch)
void
addFirstGuiComponentRow(JComponent leftComponent, JComponent rightComponent, boolean updateLayout, int spaceAroundComponents)
GuiRow
addGuiComponentRow(JComponent leftComponent, JComponent rightComponent, boolean updateLayout)
GuiRow
addGuiComponentRow(JComponent left, JComponent right, boolean updateLayout, int spaceAroundElements)
void
addGuiComponentRow(GuiRow row, boolean updateLayout)
void
addSearchFilter(SearchFilter filter)
void
clearGuiComponentList()
Removes all current known GUI component rows from the internal list.static void
closeParentDialog(Component startComponent)
void
dialogSizeUpdate()
void
enableSearch(boolean enable)
void
exchangeGuiComponentRow(GuiRow guiRow, GuiRow newRow, boolean updateLayout)
ArrayList<GuiRow>
getAllGuiRows()
JComponent
getBorderedComponent(int top, int left, int bottom, int right)
static JComponent
getBorderedComponent(JComponent comp, int top, int left, int bottom, int right)
int
getCurrentPage()
static SearchFilter
getDefaultSearchFilter(String optFixedSearch)
int
getFixedSearchFilterMatchCount()
Color
getFrameColor()
static JComponent
getHelpButton(ActionListener helpActionListener, Color frameColor)
static TableLayout
getHSplitLayout(JComponent leftComponent, JComponent rightComponent, double leftSize, double rightSize)
static ImageIcon
getLeftOrRightIcon(boolean left)
static ImageIcon
getLeftRightIcon(FolderPanel.Iconsize bigIcons, boolean left)
int
getMaxRowCount()
int
getRowCount()
static ImageIcon
getSearchIcon()
String
getTitle()
ArrayList<GuiRow>
getVisibleGuiRows()
static TableLayout
getVSplitLayout(JComponent topComp, JComponent bottomComp, double topSize, double bottomSize)
void
layoutRows()
void
mergeRowsWithSameLeftLabel()
static void
performDialogResize(Component startComponent)
void
removeGuiComponentRow(GuiRow guiRow, boolean updateLayout)
void
setBackground(Color backgroundColor)
void
setColumnStyle(double left, double right)
void
setCondensedState(boolean condensed)
void
setCurrentPage(int page)
void
setEmptyBorderWidth(int emptyBorderWidth)
void
setFrameColor(Color frameColor, Color headingColor)
void
setFrameColor(Color frameColor, Color headingColor, int frameWidth, int emptyBorderWidth)
void
setIconSize(FolderPanel.Iconsize bigIcons)
void
setMaximumRowCount(int maxRowCount)
void
setMaximumRowCount(int maxRowCount, boolean locked)
void
setRowBackground0(Color col0)
void
setRowBackground1(Color col1)
void
setRowColSpacing(int rowSpacing, int colSpacing)
void
setShowCondenseButton(boolean b)
void
setTitle(String newTitle)
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
FolderPanel
public FolderPanel(String title, boolean openCondensed, boolean showCondenseButton, boolean sortRows, ActionListener helpActionListener) -
FolderPanel
public FolderPanel(String title, boolean sortRows, ActionListener helpActionListener, String helpTopic) -
FolderPanel
-
-
Method Details
-
setIconSize
-
enableSearch
public void enableSearch(boolean enable) -
setColumnStyle
public void setColumnStyle(double left, double right) -
setEmptyBorderWidth
public void setEmptyBorderWidth(int emptyBorderWidth) -
setRowColSpacing
public void setRowColSpacing(int rowSpacing, int colSpacing) -
getFrameColor
-
setFrameColor
-
setFrameColor
-
setBackground
- Overrides:
setBackground
in classJComponent
-
addFirstGuiComponentRow
public void addFirstGuiComponentRow(JComponent leftComponent, JComponent rightComponent, boolean updateLayout, int spaceAroundComponents) -
addGuiComponentRow
public GuiRow addGuiComponentRow(JComponent leftComponent, JComponent rightComponent, boolean updateLayout) -
removeGuiComponentRow
-
exchangeGuiComponentRow
-
clearGuiComponentList
public void clearGuiComponentList()Removes all current known GUI component rows from the internal list. UseaddGuiComponentRow
to refill this list andlayoutRows
to fill the actual GUI of this component. -
addGuiComponentRow
-
getVSplitLayout
public static TableLayout getVSplitLayout(JComponent topComp, JComponent bottomComp, double topSize, double bottomSize) -
getHSplitLayout
public static TableLayout getHSplitLayout(JComponent leftComponent, JComponent rightComponent, double leftSize, double rightSize) -
layoutRows
public void layoutRows() -
setCondensedState
public void setCondensedState(boolean condensed) -
getSearchIcon
-
getLeftRightIcon
-
getHelpButton
-
getRowCount
public int getRowCount() -
getVisibleGuiRows
-
getAllGuiRows
-
getBorderedComponent
-
getBorderedComponent
public static JComponent getBorderedComponent(JComponent comp, int top, int left, int bottom, int right) -
addCollapseListener
-
addGuiComponentRow
public GuiRow addGuiComponentRow(JComponent left, JComponent right, boolean updateLayout, int spaceAroundElements) -
addComp
-
addComp
-
setTitle
-
addCollapseListenerDialogSizeUpdate
public void addCollapseListenerDialogSizeUpdate() -
dialogSizeUpdate
public void dialogSizeUpdate() -
performDialogResize
-
closeParentDialog
-
setMaximumRowCount
public void setMaximumRowCount(int maxRowCount) -
setMaximumRowCount
public void setMaximumRowCount(int maxRowCount, boolean locked) -
setRowBackground0
-
setRowBackground1
-
addSearchFilter
-
addDefaultTextSearchFilter
public void addDefaultTextSearchFilter() -
addDefaultTextSearchFilterFixed
-
getTitle
-
mergeRowsWithSameLeftLabel
public void mergeRowsWithSameLeftLabel() -
setShowCondenseButton
public void setShowCondenseButton(boolean b) -
getFixedSearchFilterMatchCount
public int getFixedSearchFilterMatchCount() -
getDefaultSearchFilter
-
getLeftOrRightIcon
-
getMaxRowCount
public int getMaxRowCount() -
getCurrentPage
public int getCurrentPage() -
setCurrentPage
public void setCurrentPage(int page)
-