| javax.swing.JButton com.xoetrope.swing.XHyperLabel
XHyperLabel | public class XHyperLabel extends JButton implements XTextHolder,MouseListener,XAttributedComponent,XStyleComponent(Code) | | A hyperlink component, showing an underline when under the cursor and
enabling button like actions on mouse click
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
antiAlias | protected boolean antiAlias(Code) | | |
forceMouseOver | protected boolean forceMouseOver(Code) | | |
selected | protected boolean selected(Code) | | |
styleMgr | protected XStyleManager styleMgr(Code) | | |
styleselectedStyle | protected XStyle styleselectedStyle(Code) | | |
translator | protected XTranslator translator(Code) | | |
XHyperLabel | public XHyperLabel()(Code) | | Create a new hyperlink label
|
getContent | public String getContent()(Code) | | Get the content of the label
the original text (un-translated) |
getFormattedText | protected String getFormattedText()(Code) | | Get the formatted (html) text for the label
the label's html |
getSelected | public boolean getSelected()(Code) | | Get the selection state of the component
true if the link is seldted |
mouseClicked | public void mouseClicked(MouseEvent me)(Code) | | The user has clicked on the component
Parameters: me - the current mouse event |
mouseEntered | public void mouseEntered(MouseEvent me)(Code) | | The cursor has just entered the component's area
Parameters: me - the current mouse event |
mouseExited | public void mouseExited(MouseEvent me)(Code) | | The cursor has just exited the component's area
Parameters: me - the current mouse event |
mousePressed | public void mousePressed(MouseEvent me)(Code) | | The mouse has been pressed while the mouse is over the component
Parameters: me - the current mouse event |
mouseReleased | public void mouseReleased(MouseEvent me)(Code) | | The mouse has been released while the mouse is over the component
Parameters: me - the current mouse event |
setAlignment | public void setAlignment(String align)(Code) | | Set the text alignment
Parameters: align - left, right, center |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- alignment - set the text alignment
Parameters: attribName - the name of the attribute Parameters: attribValue - the value of the attribute 0 for success, non zero otherwise |
setContent | public void setContent(String content)(Code) | | Set the raw (un-translated) text of the label
Parameters: content - The translation key or the text to display if no translation is to take place |
setFont | public void setFont(Font f)(Code) | | Set the font for the label
Parameters: f - the new font |
setForceMouseOver | public void setForceMouseOver(boolean force)(Code) | | Set the component to render it's text as though in a rollover state, with
the text underlined.
Parameters: force - the new flag state, true to set the component to the rollover/underlined state |
setSelected | public void setSelected(boolean state)(Code) | | Set the selected state of the component, as the component is slected it is
drawn in the selected style
Parameters: state - true to select this link |
setSelectedStyle | public void setSelectedStyle(String name)(Code) | | Set the style of a selected hyper link
Parameters: name - the selected style name |
setStyle | public void setStyle(String name)(Code) | | Set the component style
Parameters: name - the new style name |
setStyle | public void setStyle(XStyle s)(Code) | | Set the component style
Parameters: name - the new style name |
setText | public void setText(String text)(Code) | | Set the component text
Parameters: text - the component text |
|
|