de.cbse.jeasy
Class JETaskPane
java.lang.Object
de.cbse.jeasy.JEObject
de.cbse.jeasy.JEComponent
de.cbse.jeasy.JEParentComponent
de.cbse.jeasy.JETaskPane
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.InputMethodListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.CaretListener, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener, javax.swing.event.MenuKeyListener, javax.swing.event.PopupMenuListener, javax.swing.event.TableModelListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener
public class JETaskPane
- extends JEParentComponent
- implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Implements a TaskPane. Clicking on the header the panel below will be open or closed.
See a demonstration in the program JEasyExample tab "TaskPane".
Properties :
- id
The unique id of the root object.
- referenceId
A reference for this jeasy object used to identify this type of jeasy object even if it was cloned. It is used for locale properties of the object and may be used for identification in messages. If no reference is set, the jeasy id will be set as default.
- constraints (reference to JEConstraints)
The contraints for this component used for GridBagLayout Manager.
- buttongroup (reference to JEButtonGroup)
The id of the buttongroup. Only one of this group can be selected.
- border (reference to JEBorder)
The border of this component.
- north (references to [JEButton, JEDataField, JEEditorPane, JELabel, JEMenuBar, JEPanel, JESplitPane, JETabbedPane, JETable, JETaskPane, JEToolBar, JETreeNode, JETree, JEWindow])
Specifies the north child component when using the BorderLayout.
- center (references to [JEButton, JEDataField, JEEditorPane, JELabel, JEMenuBar, JEPanel, JESplitPane, JETabbedPane, JETable, JETaskPane, JEToolBar, JETreeNode, JETree, JEWindow])
Specifies the center child component when using the BorderLayout.
- animation (reference to JEAnimation)
The animation used for this object and, if it is defined for parentobjects, for all children.
- Author:
- Harry Pfohl
| Fields inherited from class de.cbse.jeasy.JEComponent |
backup, buttonBehind, caretPosition, component, endMarkPosition, enterPressed, isPressed, jeButtonBehind, label, labelBehind, labelText, parentId, scrollPane, tree, treeNode, window |
| Fields inherited from class de.cbse.jeasy.JEObject |
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW |
|
Method Summary |
void |
adjust(int diff)
Adjust the center component to get the height for its children. |
void |
changeHeight(int oldHeight,
int newHeight)
Changes the height in animated way. |
void |
collapse()
Collapses the center component to height zero |
void |
expand()
Expands the center component to origin height |
int |
getDelayMs()
|
int |
getIncrement()
|
javax.swing.JPanel |
getJPanel()
Gets the swing JPanel |
java.lang.String |
getParentTaskId()
Gets the id of the parent JETaskPane. |
int |
getStartInMs()
|
void |
ignoreMouse(boolean ignoreMouse)
If true the collapse/expand should be called by the applicatui. |
void |
init()
Creates jfc-Objects with the given properties. |
boolean |
isAnimated()
|
boolean |
isCollapsed()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Performs mouse event action like rollover text and color |
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
resetHeight()
Resets the preferred size of the center component |
void |
setAnimated(boolean animated)
|
void |
setCard(java.lang.String jeasyId)
Brings the jeasy panel of the given jeasyId on top of the card layout. |
void |
setCollapsed(boolean collapsed)
|
void |
setDelayMs(int delayMs)
|
void |
setExpandedHeight()
Sets the actual height of the component as the height that should be reached when expanding. |
void |
setIncrement(int increment)
|
void |
setParentTaskId(java.lang.String parentTaskId)
Sets the id of the JETaskPane father. |
void |
setStartInMs(int startInMs)
|
void |
setTaskHeight(int height)
Sets the height of the expandable part of the JETaskPane |
void |
setupComponent()
Set the property values to the component |
void |
show()
Makes the panel visible. |
protected void |
show(java.lang.String id)
Makes the panel visible. |
| Methods inherited from class de.cbse.jeasy.JEParentComponent |
addElement, backupEntry, clear, cloneAll, getChilds, getLayoutManager, invokeAll, invokeAll, invokeAll, invokeAll, invokeAll, removeAll, removeId, restoreEntry, setEnabledAll, setEnabledAll, setVisibleAll, setVisibleAll, wasEntryChanged |
| Methods inherited from class de.cbse.jeasy.JEComponent |
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addListeners, caretPositionChanged, caretUpdate, changedUpdate, componentHidden, componentMoved, componentResized, componentShown, examine, examine, focusGained, focusLost, getAddableComponent, getAnimation, getBackupEntry, getButtonBehind, getClosedIcon, getColumns, getComponent, getDataType, getIcon, getJEButtonBehind, getJLabel, getJScrollpane, getLabel, getLabelBehind, getLabelText, getLeafIcon, getMandatory, getName, getOpenIcon, getParentId, getToolTipText, getTreeNode, getValue, getValueBeforeFocus, getValueNotNull, getValues, getWindow, inputMethodTextChanged, insertUpdate, isEditable, isExiting, isListening, isShowing, isVerified, isVisible, itemStateChanged, jCallBackInputVerifier, keyPressed, keyReleased, keyTyped, menuKeyPressed, menuKeyReleased, menuKeyTyped, mouseMoved, mouseWheelMoved, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, propertyChange, refresh, remove, removeActionListeners, removeUpdate, repaint, restoreValueBeforeFocus, setBackground, setBackground, setEnabled, setEnabled, setExiting, setFocus, setForeground, setForeground, setIcon, setListening, setMandatory, setParentId, setProperties, setText, setToolTipText, setTreeNode, setValue, setValueBeforeFocus, setValues, setVerified, setVisible, setVisible, stateChanged, tableChanged, textUpdate, timerTask, transferFocus, transferFocusBackward, treeCollapsed, treeExpanded, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, valueChanged, valueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened |
| Methods inherited from class de.cbse.jeasy.JEObject |
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.MouseMotionListener |
mouseMoved |
JETaskPane
public JETaskPane(JELocaleProperties hm)
- Reads the properties from a HashMap
- Parameters:
hm - HashMap
JETaskPane
public JETaskPane(JENode jen)
- Constructor based on a XML file parsed to a TreeNode.
- Parameters:
jen - - See Also:
JESaxParser
getParentTaskId
public java.lang.String getParentTaskId()
- Gets the id of the parent JETaskPane.
- Returns:
setExpandedHeight
public void setExpandedHeight()
- Sets the actual height of the component as the height that should be reached when expanding.
setParentTaskId
public void setParentTaskId(java.lang.String parentTaskId)
- Sets the id of the JETaskPane father. It is used to be adjusted automaticly if this JETaskPane is expanded or collapsed
- Parameters:
parentTaskId -
changeHeight
public void changeHeight(int oldHeight,
int newHeight)
- Changes the height in animated way.
- Parameters:
oldHeight - newHeight -
setTaskHeight
public void setTaskHeight(int height)
- Sets the height of the expandable part of the JETaskPane
- Parameters:
height -
resetHeight
public void resetHeight()
- Resets the preferred size of the center component
adjust
public void adjust(int diff)
- Adjust the center component to get the height for its children.
Use it when children changed their height.
ignoreMouse
public void ignoreMouse(boolean ignoreMouse)
- If true the collapse/expand should be called by the applicatui.
If false (default) collapse/expand will be done if the user clickes at the taskpane.
- Parameters:
ignoreMouse -
collapse
public void collapse()
- Collapses the center component to height zero
expand
public void expand()
- Expands the center component to origin height
getDelayMs
public int getDelayMs()
getIncrement
public int getIncrement()
getJPanel
public javax.swing.JPanel getJPanel()
- Gets the swing JPanel
- Returns:
getStartInMs
public int getStartInMs()
init
public void init()
- Creates jfc-Objects with the given properties. The font of the text is
set to global.labelFont.
- Overrides:
init in class JEParentComponent
isAnimated
public boolean isAnimated()
- Overrides:
isAnimated in class JEComponent
- Returns:
isCollapsed
public boolean isCollapsed()
- Returns:
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked in interface java.awt.event.MouseListener- Overrides:
mouseClicked in class JEComponent
- Parameters:
e -
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener- Overrides:
mouseDragged in class JEComponent
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Description copied from class:
JEComponent
- Performs mouse event action like rollover text and color
- Specified by:
mouseEntered in interface java.awt.event.MouseListener- Overrides:
mouseEntered in class JEComponent
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited in interface java.awt.event.MouseListener- Overrides:
mouseExited in class JEComponent
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed in interface java.awt.event.MouseListener- Overrides:
mousePressed in class JEComponent
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased in interface java.awt.event.MouseListener- Overrides:
mouseReleased in class JEComponent
setAnimated
public void setAnimated(boolean animated)
- Overrides:
setAnimated in class JEComponent
- Parameters:
animated -
setCard
public void setCard(java.lang.String jeasyId)
- Brings the jeasy panel of the given jeasyId on top of the card layout.
- Parameters:
jeasyId -
setCollapsed
public void setCollapsed(boolean collapsed)
- Parameters:
collapsed -
setDelayMs
public void setDelayMs(int delayMs)
setIncrement
public void setIncrement(int increment)
setStartInMs
public void setStartInMs(int startInMs)
setupComponent
public void setupComponent()
- Description copied from class:
JEParentComponent
- Set the property values to the component
- Overrides:
setupComponent in class JEParentComponent
show
public void show()
- Makes the panel visible.
Flips to the panel if it is in a panel with CardLayout or select the panel if it is in a tabbedPane
show
protected void show(java.lang.String id)
- Makes the panel visible.
Flips to the panel if it is in a panel with CardLayout or select the panel if it is in a tabbedPane
- Overrides:
show in class JEObject