public class CollapsibleGroupPanel extends JCollapsibleGroupPanel implements FormComponent, ReferenceComponent, IdentifiedElement, AccessForm
CollapsiblGroup
JCollapsibleGroupPanel.CollapseAction, JCollapsibleGroupPanel.JCollapsibleGroup, JCollapsibleGroupPanel.JCollapsibleGroupHeaderJPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Object |
attribute
The reference to attribute.
|
protected Image |
backgroundImage
A reference to specify a background image in the column.
|
protected Paint |
backgroundPaint
A reference to background paint.
|
static String |
BGCOLOR
Attribute to define background color of the Collapsible Group.
|
static String |
BGIMAGE
Attribute to define background image of the Collapsible Group.
|
static String |
BGPAINT
Attribute to define background paint of the Collapsible Group.
|
protected int |
borderPosition
The border position.
|
protected EntityReferenceLocator |
locator
The reference to locator.
|
protected Form |
parentForm
The reference to parent form for component.
|
protected ResourceBundle |
resources |
protected boolean |
restricted
The restricted condition.
|
static String |
TEXTUREIMAGE
Attribute to define background texture image of the Collapsible Group.
|
protected TexturePaint |
texturePaint
A reference to specify a texture paint.
|
protected String |
title
The title for the Collapsible Group Panel border.
|
protected TitledBorder |
titledBorder
Indicates a special title with arbitrary border with the addition of a
String title in a specified position and justification.
|
protected FormPermission |
visiblePermission
The reference for visible permission.
|
animated, cycleStart, deployTime, fillerComponent, headerMouseListener, initStateCollapsed, onlyonedeployed, target, timeraccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEDESACTIVATE_COMPONENT_BY_PERMISSION_TIPABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
CollapsibleGroupPanel(Hashtable parameters)
The class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component c,
Object constraints) |
protected boolean |
checkVisiblePermission()
Checks the visible permission.
|
protected JPanel |
createFillerComponent()
This method creates the filler panel that is placed under all components
of the Collpasible Group Panel.
|
Object |
getAttribute()
Gets the object attribute.
|
protected Color |
getColor(String strColor,
String parameterName)
This method returns a Color from the specified String with the color.
|
Object |
getConstraints(LayoutManager parentLayout)
Description method to return the
constraints component to
place correctly in parent container. |
protected Image |
getImage(String imageURL)
This method returns an Image from the specified path of the image.
|
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
void |
init(Hashtable parameters)
Inits the parameters.
|
void |
initPermissions() |
boolean |
isRestricted() |
void |
setBackgroundImage(Image im)
Sets a background image in Collapsible Group Panel.
|
void |
setBackgroundPaint(Paint p)
Sets the background paint parameter and repaints the Collapsible Group
Panel.
|
void |
setComponentLocale(Locale l) |
void |
setEnabled(boolean enabled)
Description method to set enabled or not the component according the
boolean condition in parameter.
|
void |
setParentForm(Form f)
Method declaration to set the form that contains the component.
|
void |
setReferenceLocator(EntityReferenceLocator b)
Establishes the reference locator that will be used by component.
|
void |
setResourceBundle(ResourceBundle resource)
Sets the language resource bundle.
|
void |
setVisible(boolean visible)
Description method to set visible or not the component according the
boolean condition in parameter.
|
add, add, addGroupPanel, getGroupPanels, isAnimated, isOnlyonedeployed, removeGroupPanel, revalidate, setAnimated, setOnlyonedeployedgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, 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, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, hide, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabledpublic static String BGCOLOR
public static String BGPAINT
public static String BGIMAGE
public static String TEXTUREIMAGE
protected Paint backgroundPaint
protected Image backgroundImage
protected TexturePaint texturePaint
protected Object attribute
protected String title
protected TitledBorder titledBorder
protected int borderPosition
protected Form parentForm
protected EntityReferenceLocator locator
protected FormPermission visiblePermission
protected boolean restricted
protected ResourceBundle resources
public CollapsibleGroupPanel(Hashtable parameters)
parameters - the hashtable with parameterspublic void setParentForm(Form f)
AccessFormsetParentForm in interface AccessFormf - the form referencepublic void init(Hashtable parameters)
init in interface FormComponentparameters - the hashtable with parameters
| attribute | values | default | required | meaning |
| attr | yes | The attribute for Collapsible Group Panel. | ||
| opaque | yes/no | yes | no | Specifies if the component must be opaque or not. |
| anim | yes/no | no | no | Sets the animation enabled/disabled |
| startshowed | yes/no | no | no | Specifies whether the Collapsible Group Panel starts collpased or not.If true all CollapsibleGroups contained on it are forced to be collpased, if not each Collpasible Group takes its own 'startshowed' parameter. |
| onlyonedeployed | yes/no | no | no | Specifies if just one Collapsible Group can be opened or it can be opened more than one. By default it is allowed to deploy more than one Collpasible Group. |
| time | 200 | no | Sets deploying/undeploying duration in milliseconds | |
| margin | no | Indicates the column margin. | title | no | The Collapsible Group Panel title. |
| border | none/lowered/raised/bevellowered/bevelraised | none | no | The border definition. |
| titleposition | abovetop/top/belowtop/abovebottom/bottom/belowbottom | no | The title-position of the titled border.. | |
| bgcolor | no | The background color. A possible color for
ColorConstants or a RGB value like: '150;230;23' |
||
| bgimage | no | The path to background image. | ||
| bgpaint | no | Paint value to use in this container. See
ColorConstants.paintNameToPaint(String) |
||
| textureimage | no | Path to source icon to extract a image and create a
TexturePaint |
protected Color getColor(String strColor, String parameterName)
strColor - String with the value of the color.parameterName - Parameter name for which is the specified color. In case of
bad parsing, an error is printed with the parameter name.Color.protected Image getImage(String imageURL)
imageURL - The path of the image.Image.protected JPanel createFillerComponent()
createFillerComponent in class JCollapsibleGroupPanelpublic void setBackgroundPaint(Paint p)
p - The background paint configurationpublic void setBackgroundImage(Image im)
im - The awt image to set in background imageImagepublic Object getAttribute()
IdentifiedElementgetAttribute in interface IdentifiedElementpublic Object getConstraints(LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container referencepublic void setResourceBundle(ResourceBundle resource)
InternationalizationsetResourceBundle in interface Internationalizationresource - the new language bundle.public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void add(Component c, Object constraints)
add in class JCollapsibleGroupPanelpublic void setVisible(boolean visible)
FormComponentsetVisible in interface FormComponentsetVisible in class JComponentvisible - the visibility conditionpublic void setEnabled(boolean enabled)
FormComponentsetEnabled in interface FormComponentsetEnabled in class JComponentenabled - the enabled conditionpublic void initPermissions()
initPermissions in interface SecureElementprotected boolean checkVisiblePermission()
public void setReferenceLocator(EntityReferenceLocator b)
ReferenceComponentsetReferenceLocator in interface ReferenceComponentb - a reference locator to set in componentpublic boolean isRestricted()
isRestricted in interface SecureElementCopyright © 2016 Imatia Innovation S.L.. All rights reserved.