| com.javujavu.javux.wings.WingComponent com.javujavu.javux.wings.WingLabel
All known Subclasses: com.javujavu.javux.wings.WingButton,
WingLabel | public class WingLabel extends WingComponent (Code) | | A display area for a label. It can be text, image or any object
that can be rendered with
ItemRenderer set to this component.
This is one of the core WingS classes required by all the components
This class is thread safe.
See Also: ItemRenderer See Also: DefaultItemRenderer |
alignment | protected int alignment(Code) | | |
textPosition | protected int textPosition(Code) | | |
WingLabel | public WingLabel()(Code) | | Constructs an empty label.
|
WingLabel | public WingLabel(Object label)(Code) | | Constructs a new label with the specified label item.
Parameters: label - label item usually String |
WingLabel | public WingLabel(Object label, int alignment)(Code) | | Constructs a new label with the specified label item
with the specified alignment
Parameters: label - label item usually String Parameters: alignment - the alignment value. |
getLabel | public Object getLabel()(Code) | | Returns the label item of this label.
the label item of this label |
loadSkin | public void loadSkin()(Code) | | Loads skin resources.
styles:
[optional styleID.]label.normal
[optional styleID.]label.disabled
See Also: Style See Also: WingSkin |
setHorizontalAlignment | public void setHorizontalAlignment(int alignment)(Code) | | Sets the alignment of the label's contents along the X axis.
Parameters: alignment - One of the following constantsWingConst.LEFT ,WingConst.CENTER WingConst.RIGHT |
setLabel | public void setLabel(Object label)(Code) | | Sets the label item for this label to the specified value.
Parameters: label - the label item that this label displays. |
setTextPosition | public void setTextPosition(int textPosition)(Code) | | Sets the horizontal position of the label's text,
relative to its image.
Parameters: textPosition - One of the following constantsWingConst.LEFT ,WingConst.RIGHT |
Methods inherited from com.javujavu.javux.wings.WingComponent | public void addActionListener(ActionListener l)(Code)(Java Doc) public void addItemListener(ItemListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public void addShortcut(Shortcut s)(Code)(Java Doc) public void addShortcuts(WingComponent source)(Code)(Java Doc) protected void cancelPopup(WingComponent src)(Code)(Java Doc) protected static void clrPopup(WingComponent popup)(Code)(Java Doc) protected void dispatchEventOET(AWTEvent e)(Code)(Java Doc) protected boolean dispatchEventsOET()(Code)(Java Doc) protected void dispatchShortcuts(KeyEvent e)(Code)(Java Doc) protected void doScrollRectToVisible(Rectangle r)(Code)(Java Doc) public static void enablePopups(boolean enableLightweightPopups, boolean enableHeavyweightPopups)(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public String getClipboardText()(Code)(Java Doc) public Font getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Frame getParentFrame()(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public ItemRenderer getRenderer()(Code)(Java Doc) public WingRootPane getRootPane()(Code)(Java Doc) public void getScrollIncrements(Point unit, Point block)(Code)(Java Doc) public Style getStyle()(Code)(Java Doc) public Object getTooltipAt(int x, int y)(Code)(Java Doc) public Dimension getViewOrSize()(Code)(Java Doc) public Dimension getViewSize()(Code)(Java Doc) protected Dimension getViewSize(WingComponent child)(Code)(Java Doc) public WingFont getWingFont()(Code)(Java Doc) protected void hideTooltip()(Code)(Java Doc) public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isFocusTraversable()(Code)(Java Doc) public void loadSkin()(Code)(Java Doc) public void mouseWheelMoved(Object source, int wheelRotation)(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) public void paintBackground(Graphics g)(Code)(Java Doc) public void paintComponent(Graphics g)(Code)(Java Doc) public void postOnEventThread(AWTEvent e)(Code)(Java Doc) protected void processEvent(AWTEvent e)(Code)(Java Doc) protected void processKeyEvent(KeyEvent e)(Code)(Java Doc) protected void processMouseEvent(MouseEvent e)(Code)(Java Doc) protected void processMouseMotionEvent(MouseEvent e)(Code)(Java Doc) public void removeActionListener(ActionListener l)(Code)(Java Doc) public void removeItemListener(ItemListener l)(Code)(Java Doc) public void removeShortcut(Shortcut s)(Code)(Java Doc) public void removeShortcuts(WingComponent source)(Code)(Java Doc) public void repaintVisible()(Code)(Java Doc) public boolean repaintVisible(int x, int y, int width, int height)(Code)(Java Doc) public void revalidateAndRepaint()(Code)(Java Doc) public void scrollRectToVisible(Rectangle r)(Code)(Java Doc) public void setClipboardText(String text)(Code)(Java Doc) public static void setDebugDelay(int debugDelay)(Code)(Java Doc) public static void setDoubleBuffering(boolean doubleBuffering)(Code)(Java Doc) public void setEnabled(boolean b)(Code)(Java Doc) protected static void setPopup(WingComponent popup)(Code)(Java Doc) public void setPreferredSize(Dimension prefSize)(Code)(Java Doc) public void setRenderer(ItemRenderer renderer)(Code)(Java Doc) public void setStyleId(String styleId)(Code)(Java Doc) public void setTooltip(Object tooltip)(Code)(Java Doc) public void setTopStyle(Style topStyle)(Code)(Java Doc) public void setWingFocusable(boolean focusable)(Code)(Java Doc) protected void showTooltip(Point point)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) protected void updateShortcuts(WingComponent target, boolean add)(Code)(Java Doc) public static void updateSkin(Container c)(Code)(Java Doc) protected void validateTree()(Code)(Java Doc) public void wingHierarchyChanged(boolean showing)(Code)(Java Doc) public void wingPaint(Graphics g)(Code)(Java Doc) protected void wingProcessActionEvent(ActionEvent e)(Code)(Java Doc) protected void wingProcessItemEvent(ItemEvent e)(Code)(Java Doc) protected void wingProcessKeyEvent(KeyEvent e, WingComponent redirecting)(Code)(Java Doc) protected void wingProcessMouseEvent(MouseEvent e)(Code)(Java Doc) public void wingRequestFocusInWindow()(Code)(Java Doc) protected void wingValidate()(Code)(Java Doc)
|
|
|