public class AttributeList extends javax.swing.JPanel implements ContextHelp
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected boolean |
imageAdded |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AttributeList()
Constructs a new attribute list.
|
Modifier and Type | Method and Description |
---|---|
void |
addSeparator()
Adds a separator under the last attribute line.
|
javax.swing.JLabel |
append(javax.swing.ImageIcon imageIcon)
Appends an image icon to the right of the other components and return the
label the image has been added to.
|
void |
append(javax.swing.JComponent component)
Adds a further component in the current line
|
void |
append(java.lang.String infoExtension)
Adds a further text in the current line
|
void |
append(java.lang.String attrDesc,
javax.swing.JComponent component)
Adds an attribute with its label into a new line.
|
void |
append(java.lang.String attrDesc,
java.lang.String specialAttributeValue)
Adds a label and a special attribute value into a new line.
|
void |
appendFullRowSpan(javax.swing.JComponent component) |
void |
appendInfoLine(java.lang.String infoLine)
Adds a topic in a new line spanning both columns.
|
void |
appendInNewRow(javax.swing.JComponent component)
Adds a component into a new line starting leftmost.
|
void |
appendTopic(java.lang.String topicDescription)
Adds a topic in a new line spanning both columns.
|
void |
boldLastLabel()
Sets the font style of the last created label to bold.
|
void |
boldLastLine()
Sets the font style of the last created line to bold.
|
void |
boldLastValues()
Sets the font style of the last created values to bold.
|
int |
getCurrentRowIndex() |
java.lang.String |
getHelpTarget()
Returns the target of the component's help context.
|
java.lang.String |
getHelpTopic()
Returns the topic of the component's help context.
|
java.awt.Dimension |
getMinimumLayoutSize()
Returns the layout manager's minimum layout size of all components.
|
void |
newRow(java.lang.String label) |
void |
optimizeLayout(int reduceWidthPercent,
int enlargeWidthPercent)
Optimizes layout by reducing variations of right input field endings - form must be visible when this method is called!
|
void |
setCurrentRowVisible(boolean visible)
Sets the visibility of the current row.
|
void |
setHelpContext(java.lang.String helpTopic)
Sets the component's context help.
|
void |
setHelpContext(java.lang.String helpTopic,
java.lang.String helpTarget)
Sets the component's context help.
|
void |
setRowColor(java.awt.Color color)
Sets the color of the current row.
|
void |
setRowColor(int row,
java.awt.Color color)
Sets the color of a row.
|
void |
setRowVisible(int row,
boolean visible)
Sets the visibility of a row.
|
void |
setValueLabelColumnSpan2BeginningWithRow(int valueLabelColumnSpan2BeginningWithRow)
Sets the row index when the column value label column is to be shown with column span 2.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, validateTree
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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void setHelpContext(java.lang.String helpTopic)
helpTopic
- the context help's topicpublic void setHelpContext(java.lang.String helpTopic, java.lang.String helpTarget)
setHelpContext
in interface ContextHelp
helpTopic
- the context help's topichelpTarget
- the context help's targetpublic java.lang.String getHelpTopic()
getHelpTopic
in interface ContextHelp
public java.lang.String getHelpTarget()
getHelpTarget
in interface ContextHelp
public void setValueLabelColumnSpan2BeginningWithRow(int valueLabelColumnSpan2BeginningWithRow)
valueLabelColumnSpan2BeginningWithRow
- the row index where to start column span 2public javax.swing.JLabel append(javax.swing.ImageIcon imageIcon)
imageIcon
- the image icon to be added to the attribute listpublic void append(java.lang.String attrDesc, javax.swing.JComponent component)
attrDesc
- the label to addcomponent
- the component to addpublic void newRow(java.lang.String label)
public void appendInNewRow(javax.swing.JComponent component)
component
- the component to addpublic void append(javax.swing.JComponent component)
component
- the component to addpublic void append(java.lang.String infoExtension)
infoExtension
- the text to addpublic void append(java.lang.String attrDesc, java.lang.String specialAttributeValue)
specialAttributeValue
- the text to addpublic void appendTopic(java.lang.String topicDescription)
topicDescription
- the topic text to addpublic void appendInfoLine(java.lang.String infoLine)
topicDescription
- the topic text to addpublic void appendFullRowSpan(javax.swing.JComponent component)
public void addSeparator()
public int getCurrentRowIndex()
public void setCurrentRowVisible(boolean visible)
visible
- true to make the row visible; false to make it invisiblepublic void setRowVisible(int row, boolean visible)
row
- the row to be set visible or invisiblevisible
- true to make the row visible; false to make it invisiblepublic void setRowColor(java.awt.Color color)
color
- the color to setpublic void setRowColor(int row, java.awt.Color color)
row
- the row to be set the colorcolor
- the color to setpublic java.awt.Dimension getMinimumLayoutSize()
public void optimizeLayout(int reduceWidthPercent, int enlargeWidthPercent)
reduceWidthPercent
- how much percent length of last input field may be reduced to accomplish right alignment with a previous text fieldenlargeWidthPercent
- how much percent length of last input field may be enlarged to accomplish right alignment with a previous text fieldpublic void boldLastLine()
public void boldLastLabel()
public void boldLastValues()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de