Java Doc for XHyperLabel.java in  » XML-UI » xui32 » com » xoetrope » swing » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML UI » xui32 » com.xoetrope.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Field Summary
protected  Stringalignment
    
protected  booleanantiAlias
    
protected  booleanforceMouseOver
    
protected  StringorigText
    
protected  booleanselected
    
protected  XStyleManagerstyleMgr
    
protected  XStylestyleselectedStyle
    
protected  XTranslatortranslator
    

Constructor Summary
public  XHyperLabel()
    

Method Summary
public  StringgetContent()
    
protected  StringgetFormattedText()
    
public  InsetsgetInsets()
    
public  booleangetSelected()
    
public  voidmouseClicked(MouseEvent me)
    
public  voidmouseEntered(MouseEvent me)
    
public  voidmouseExited(MouseEvent me)
    
public  voidmousePressed(MouseEvent me)
    
public  voidmouseReleased(MouseEvent me)
    
public  voidpaintComponent(Graphics g)
    
public  voidsetAlignment(String align)
    
public  intsetAttribute(String attribName, Object attribValue)
     Set one or more attributes of the component.
public  voidsetContent(String content)
    
public  voidsetFont(Font f)
    
public  voidsetForceMouseOver(boolean force)
     Set the component to render it's text as though in a rollover state, with the text underlined.
public  voidsetSelected(boolean state)
    
public  voidsetSelectedStyle(String name)
    
public  voidsetStyle(String name)
    
public  voidsetStyle(XStyle s)
    
public  voidsetText(String text)
    

Field Detail
alignment
protected String alignment(Code)



antiAlias
protected boolean antiAlias(Code)



forceMouseOver
protected boolean forceMouseOver(Code)



origText
protected String origText(Code)



selected
protected boolean selected(Code)



styleMgr
protected XStyleManager styleMgr(Code)



styleselectedStyle
protected XStyle styleselectedStyle(Code)



translator
protected XTranslator translator(Code)




Constructor Detail
XHyperLabel
public XHyperLabel()(Code)
Create a new hyperlink label




Method Detail
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



getInsets
public Insets getInsets()(Code)



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



paintComponent
public void paintComponent(Graphics g)(Code)



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



Methods inherited from javax.swing.JButton
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean isDefaultButton()(Code)(Java Doc)
public boolean isDefaultCapable()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setDefaultCapable(boolean defaultCapable)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.