|
||||||||||||
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.JLabel
com.retek.commons.gui.widget.RLabel
This class sublcasses the standard JLabel class in the Swing package to provide custom functionality for the Rcom client application.
Retek Inc. Copyright (c) 2002
Nested Class Summary |
---|
Nested classes inherited from class javax.swing.JLabel |
---|
javax.swing.JLabel.AccessibleJLabel |
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 | |
---|---|
static int |
CURRENCY
|
static int |
NEGATIVE_CURRENCY
|
static int |
NUMBER
|
static int |
TEXT
|
Fields inherited from class javax.swing.JLabel |
---|
labelFor |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
RLabel()
Returns new RLabel object. |
|
RLabel(java.lang.String text)
Returns new RLabel object with display text assigned. |
|
RLabel(java.lang.String text,
boolean useSuffix)
Returns new RetekLabel object with text. |
Method Summary | |
---|---|
void |
clear()
Clears the text of the label. |
java.lang.String |
getClusterName()
Retrieves the cluster name of the widget. |
boolean |
isErrorState()
Retrieves whether or not the label is in an error state. |
void |
setBackground(java.awt.Color color)
|
void |
setClusterName(java.lang.String clusterName)
Sets the cluster name of the widget. |
void |
setErrorState(boolean errorState)
Sets the error state of the label - changing the color of the background and foreground. |
void |
setFocusedState()
Empty implementation to satisfy the widgetinterface method. |
void |
setFontStyle(java.awt.Color color,
int style,
float size)
Sets the font color, style and size for the label. |
void |
setFontStyle(int style)
Sets the font style for the label. |
void |
setFontStyle(int style,
float size)
Sets the font style and size for the label. |
void |
setForeground(java.awt.Color color)
|
void |
setIcon(java.lang.String filename,
java.lang.String text)
Attempts to load an icon from a filename and places it in the button. |
void |
setLockedWidth(int width)
Sets the minimum, maximum and preferred width of the label. |
void |
setMinimumSize(int width,
int height)
Sets the minimum and preferred width and height of the button. |
void |
setMinimumWidth(int width)
Sets the minimum and preferred width of the label. |
void |
setText(java.lang.String text)
Sets the text to display within the label. |
void |
setText(java.lang.String text,
boolean translate)
Sets the text to display. |
void |
setType(int type)
Sets the label type (valid options are RLabel.TEXT, RLabel.NUMBER, RLabel.CURRENCY, and RLabel.NEGATIVE_CURRENCY). |
Methods inherited from class javax.swing.JLabel |
---|
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setUI, setVerticalAlignment, setVerticalTextPosition, 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, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, 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, 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 |
Methods inherited from interface com.retek.commons.gui.core.WidgetInterface |
---|
getName, setName |
Field Detail |
public static final int TEXT
public static final int CURRENCY
public static final int NEGATIVE_CURRENCY
public static final int NUMBER
Constructor Detail |
public RLabel()
public RLabel(java.lang.String text)
text
- The display text to assign to the label.
/public RLabel(java.lang.String text, boolean useSuffix)
text
- The display text to assign to the label.useSuffix
- True is the label should display the suffix, false if not.
/Method Detail |
public void setLockedWidth(int width)
width
- The width of the label in pixels.public void setMinimumWidth(int width)
width
- The width of the label in pixels.public void setMinimumSize(int width, int height)
width
- The width of the button in pixels.height
- The height of the button in pixels.public void setType(int type)
type
- The label type.public void setText(java.lang.String text)
text
- The text to display within the label.
/public void setText(java.lang.String text, boolean translate)
text
- The text to display with the label.translate
- True if the text should be translated, false if not.
/public void clear()
public void setIcon(java.lang.String filename, java.lang.String text)
filename
- The filename of the icon to place in the button.text
- The replacement text if the icon could not be found.public void setFontStyle(int style)
style
- The style to assign to the font.
/public void setFontStyle(int style, float size)
style
- The style to assign to the font.size
- The size to assign to the font.
/public void setFontStyle(java.awt.Color color, int style, float size)
color
- The color to assign to the foreground of the label.style
- The style to assign to the font.size
- The size to assign to the font.
/public void setClusterName(java.lang.String clusterName)
setClusterName
in interface WidgetInterface
clusterName
- The cluster name to assign to the widget.public java.lang.String getClusterName()
getClusterName
in interface WidgetInterface
public void setBackground(java.awt.Color color)
in JLabel.
public void setForeground(java.awt.Color color)
in JLabel.
public void setFocusedState()
setFocusedState
in interface WidgetInterface
public boolean isErrorState()
isErrorState
in interface WidgetInterface
public void setErrorState(boolean errorState)
setErrorState
in interface WidgetInterface
errorState
- True if the label is in an error state, false if not.
/
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |