|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.retek.commons.gui.widget.RPanel
com.retek.commons.gui.widget.RTab
This class subclasses RPanel to provide custom functionality for secondary tabs within a tabbed pane. Each RTab object represents a single tab of a tabbed pane.
Retek Inc. Copyright (c) 2002
Nested Class Summary |
---|
Nested classes inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
---|---|
RTab()
Returns new RTab object. |
Method Summary | |
---|---|
void |
clearAllExceptions()
Clears the exceptions in the widget manager. |
void |
clearBusinessExceptions()
Clears the business exceptions in the widget manager. |
protected abstract void |
clearStatusBar()
Abstract methods that should be defined by sub-classes of RView. |
void |
clearUIExceptions()
Clears the UI exceptions in the widget manager. |
protected abstract void |
displayException(BusinessException exception)
|
protected abstract void |
displayException(java.lang.RuntimeException exception)
|
protected abstract void |
displayException(SystemException exception)
|
protected void |
displayException(java.lang.Throwable throwable)
Displays an exception in the appropriate manner. |
protected abstract void |
displayException(UiBusinessException exception)
|
protected abstract void |
displayMessage(java.lang.String message)
|
protected abstract void |
displaySearchMessage(java.lang.String message,
ErrorSeverity severity)
Abstract exceptions and message display methods to be defined by sub-classes. |
protected abstract void |
displayWarning(java.lang.String warning)
|
protected RetekLogger |
getLogger()
Retrieves the logger object to be used for this tab. |
WidgetManager |
getWidgetManager()
Retrieves the widget manager for the tab. |
boolean |
hasAnyExceptions()
Returns whether or not the widget manager has any widgets that have errors. |
boolean |
hasBusinessExceptions()
Returns whether or not the widget manager has any business exceptions in memory. |
boolean |
hasUIExceptions()
Returns whether or not the widget manager has any widgets that have errors. |
boolean |
isShowable()
Returns whether or not this tab's contents are showable. |
boolean |
isStartable()
Determines if a tab may be started (gain focus). |
boolean |
isStoppable()
Determines if the tab can be stopped (focus transferred to different tab). |
boolean |
isTabModified()
Retrieves whether or not the widget values have been altered. |
protected void |
logDebug(java.lang.String message)
Displays a debut message. |
void |
releaseWidget(java.lang.String widgetName)
Releases a widget from error state based on a widget name. |
void |
setActionsEnabled(boolean enabled)
Sets whether or not the widget manager should send actions. |
void |
setMonitorEnabled(boolean enabled)
Enables or disables the monitor part of the widget manager that tracks the modification of widget contents. |
void |
setNavigationEnabled(boolean enabled)
Enables or disables the navigation functionality of the widget manager. |
void |
setShowable(boolean showable)
Sets whether or not the contents of the tab should be displayed when the tab is active. |
void |
setStatusBar(RStatusBar statusBar)
Assigns a status bar to the widget manager for the tab. |
void |
setTabModified(boolean modified)
Sets the modified state of the contents of the tab. |
void |
start()
Empty implementation of a start() method so that each RcomTab has one. |
void |
stop()
Empty implementation of stop(), so that each RcomTab has one. |
Methods inherited from class com.retek.commons.gui.widget.RPanel |
---|
addREventListener, getFocusCycleComponents, notifyREventListeners, notifyREventListeners, performActionEvent, performErrorEvent, removeAllREventListeners, removeREventListener, repaintPanel, setEmptyBorder, setEmptyBorder, setFocusCycleComponents, setLineBorder, setLineBorder, setLoweredBevelBorder, setMinimumHeight, setRaisedBevelBorder, setTitleBorder, setTitleBorder, setTitleBorder, setTitleBorder |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RTab()
Method Detail |
public WidgetManager getWidgetManager()
protected RetekLogger getLogger()
protected void logDebug(java.lang.String message)
message
- The message for the logger to display.public void setNavigationEnabled(boolean enabled)
enabled
- True if the navigation should be enabled, false if not.public void setMonitorEnabled(boolean enabled)
enabled
- True if the monitor should be active, false if not.public void setStatusBar(RStatusBar statusBar)
statusBar
- The status bar to assign to the widget manager.public void setTabModified(boolean modified)
modified
- True if the tab contents are modified, false if not.public boolean isTabModified()
public void clearAllExceptions()
public void clearBusinessExceptions()
public void clearUIExceptions()
public boolean hasAnyExceptions()
public boolean hasBusinessExceptions()
public boolean hasUIExceptions()
public void setActionsEnabled(boolean enabled)
public void releaseWidget(java.lang.String widgetName)
widgetName
- The widget name to release from error state.public void setShowable(boolean showable)
showable
- True if the contents should be shown, false if not.public boolean isShowable()
public boolean isStartable()
public void start()
public boolean isStoppable()
public void stop()
protected void displayException(java.lang.Throwable throwable)
throwable
- An throwable exception.protected abstract void clearStatusBar()
protected abstract void displaySearchMessage(java.lang.String message, ErrorSeverity severity)
protected abstract void displayMessage(java.lang.String message)
protected abstract void displayWarning(java.lang.String warning)
protected abstract void displayException(SystemException exception)
protected abstract void displayException(BusinessException exception)
protected abstract void displayException(UiBusinessException exception)
protected abstract void displayException(java.lang.RuntimeException exception)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |