com.tivoli.uif.controls
Class UFStatusField

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.tivoli.uif.controls.UFStatusField
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

Deprecated. - use com.tivoli.twg.guilibs.TWGStatusField which includes the capability to imitate the colors and font settings of JComponents other than JPanel if desired - as in the case of a dialog whose coloring mimics that of JMenu. This class will be removed in framework5.

public class UFStatusField
extends javax.swing.JPanel

A recessed label pane used to insert into a status panel. The class supports both fixed and variable length pane sizes and can be customized. Used for populating a UFStatusPanel.

See Also:
TWGTaskFrame, UFStatusPanel, Serialized Form

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
protected UFStatusField()
          Deprecated. Protected constructor for use in the transition to use of TWGStatusField.
  UFStatusField(int width)
          Deprecated. Constructs an empty, fixed length status field with the width passed.
  UFStatusField(int width, int alignment)
          Deprecated. Constructs an empty, fixed length status field sized to the width passed.
  UFStatusField(java.lang.String text)
          Deprecated. Constructs a variable length status field using the text passed.
  UFStatusField(java.lang.String text, int width)
          Deprecated. Constructs a fixed (or variable) status field using the text passed.
  UFStatusField(java.lang.String text, int width, int halign)
          Deprecated. Constructs the recessed label field, using the string provided as the text, the alignment value for alignment and the width value for the recessed area size.
 
Method Summary
 void enableShrinkage(boolean es)
          Deprecated. Enable (or disable) the ability of the field to shrink when requested.
 int getAlignment()
          Deprecated. Retrieve the alignment of the text in the status field.
 int getFieldWidth()
          Deprecated. Retrieve the width of the recessed pane.
 java.awt.Font getFont()
          Deprecated. Get the font of the JLabel inside the field.
 java.awt.Color getForeground()
          Deprecated. Get the foreground color of the JLabel inside the field.
 java.awt.Dimension getMaximumSize()
          Deprecated. Override the maximum size method to always supply the value passed in.
 java.awt.Dimension getMinimumSize()
          Deprecated. Override the minimum size method to always supply the value passed in.
 java.awt.Dimension getPreferredSize()
          Deprecated. Override the preferred size method to always supply the value passed in.
 java.lang.String getText()
          Deprecated. Retrieve the text of the status field.
 void setAlignment(int alignment)
          Deprecated. Set the alignment of the text in the status field.
 void setFieldWidth(int newWidth)
          Deprecated. Change the width of the recessed pane to the new value passed.
 void setFont(java.awt.Font font)
          Deprecated. Set the font of the JLabel inside the field.
 void setForeground(java.awt.Color color)
          Deprecated. Set the foreground color of the JLabel inside the field.
 void setText(java.lang.String text)
          Deprecated. Set the text of the status field to the specified string.
 void setVariableMinWidth(int width)
          Deprecated. Set a minimum width value to use on a variable width field.
 
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, getNextFocusableComponent, 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, 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, getFontMetrics, 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

UFStatusField

protected UFStatusField()
Deprecated. 
Protected constructor for use in the transition to use of TWGStatusField.


UFStatusField

public UFStatusField(int width)
Deprecated. 
Constructs an empty, fixed length status field with the width passed. The text is aligned to the left of the field.

Parameters:
width - The width value to fix the field size at. If 0, the field is a variable length field.

UFStatusField

public UFStatusField(int width,
                     int alignment)
Deprecated. 
Constructs an empty, fixed length status field sized to the width passed. The text is aligned as specified.

Parameters:
width - The width value to fix the field size at. If 0, the field is a variable length field.
alignment - The alignment for positioning the text in the field.

UFStatusField

public UFStatusField(java.lang.String text)
Deprecated. 
Constructs a variable length status field using the text passed. The text is aligned to the left of the field.

Parameters:
text - The initial text to place in the status field.

UFStatusField

public UFStatusField(java.lang.String text,
                     int width)
Deprecated. 
Constructs a fixed (or variable) status field using the text passed. The text is aligned to the left of the field. If width is 0, the field is variable length, otherwise it is a fixed length of the size passed.

Parameters:
text - The initial text to place in the status field.
width - The width value to fix the field size at. If 0, the field is a variable length field.

UFStatusField

public UFStatusField(java.lang.String text,
                     int width,
                     int halign)
Deprecated. 
Constructs the recessed label field, using the string provided as the text, the alignment value for alignment and the width value for the recessed area size.

Parameters:
text - The initial text to place in the status field.
width - The width value to fix the field size at. If 0, the field is a variable length field.
halign - The alignment for positioning the text in the field.
Method Detail

setFieldWidth

public void setFieldWidth(int newWidth)
Deprecated. 
Change the width of the recessed pane to the new value passed.

Parameters:
newWidth - The width value to fix the field size at. If 0, the field is a variable length field.

getFieldWidth

public int getFieldWidth()
Deprecated. 
Retrieve the width of the recessed pane.

Returns:
The width value the field size is fixed at. If 0, the field is a variable length field.

setText

public void setText(java.lang.String text)
Deprecated. 
Set the text of the status field to the specified string.

Parameters:
text - The new string to display in the status field.

getText

public java.lang.String getText()
Deprecated. 
Retrieve the text of the status field.

Returns:
The current string to displayed in the status field.

setForeground

public void setForeground(java.awt.Color color)
Deprecated. 
Set the foreground color of the JLabel inside the field.

Parameters:
color - The new color value for the text in the field.

getForeground

public java.awt.Color getForeground()
Deprecated. 
Get the foreground color of the JLabel inside the field.

Returns:
The current color value for the text in the field.

setFont

public void setFont(java.awt.Font font)
Deprecated. 
Set the font of the JLabel inside the field.

Parameters:
font - The new font to use for displaying the text in the field.

getFont

public java.awt.Font getFont()
Deprecated. 
Get the font of the JLabel inside the field.

Returns:
The font in use for displaying the text in the field.

setAlignment

public void setAlignment(int alignment)
Deprecated. 
Set the alignment of the text in the status field.

Parameters:
alignment - The alignment for positioning the text in the field.

getAlignment

public int getAlignment()
Deprecated. 
Retrieve the alignment of the text in the status field.

Returns:
The current alignment used for positioning the text in the field.

setVariableMinWidth

public void setVariableMinWidth(int width)
Deprecated. 
Set a minimum width value to use on a variable width field. This is only used if the status field is a variable width field. The field size will expand as large as it wants, but will shrink only down to the minimum size specified here.

Parameters:
width - The minimum width to use for a variable width field.

enableShrinkage

public void enableShrinkage(boolean es)
Deprecated. 
Enable (or disable) the ability of the field to shrink when requested. If the status panel is sized smaller, then the status field will stay at its fixed size, unless we enable the ability to allow it to shrink.

Parameters:
es - If false, the field will stay at its fixed size (or variable min value) when requested to shrink during sizing operations. If true, overrides the fixed width value and allows the control to shrink as small as possible during sizing operations.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Deprecated. 
Override the preferred size method to always supply the value passed in. No override done if width is 0.


getMinimumSize

public java.awt.Dimension getMinimumSize()
Deprecated. 
Override the minimum size method to always supply the value passed in. No override done if width is 0.


getMaximumSize

public java.awt.Dimension getMaximumSize()
Deprecated. 
Override the maximum size method to always supply the value passed in. No override done if width is 0.