Java Doc for BorderProperty.java in  » Swing-Library » abeille-forms-designer » com » jeta » forms » store » properties » 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 » Swing Library » abeille forms designer » com.jeta.forms.store.properties 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jeta.forms.store.properties.JETAProperty
   com.jeta.forms.store.properties.BorderProperty

All known Subclasses:   com.jeta.forms.store.properties.EtchedBorderProperty,  com.jeta.forms.store.properties.ShadowBorderProperty,  com.jeta.forms.store.properties.BevelBorderProperty,  com.jeta.forms.store.properties.EmptyBorderProperty,  com.jeta.forms.store.properties.DefaultBorderProperty,  com.jeta.forms.store.properties.LineBorderProperty,  com.jeta.forms.store.properties.CompoundBorderProperty,  com.jeta.forms.store.properties.TitledBorderProperty,
BorderProperty
public class BorderProperty extends JETAProperty (Code)
Base class for all border properties. Stores common border attributes.
author:
   Jeff Tassin


Field Summary
final public static  StringPROPERTY_ID
     The name for this property.
final public static  intVERSION
     The version of this class.
final static  longserialVersionUID
    

Constructor Summary
public  BorderProperty()
     Creates an unitialized BorderProperty instance.

Method Summary
public  BordercreateBorder(Component comp)
     Creates a Swing border instance based on the values in this BorderProperty instance.
Parameters:
  comp - the component that is the basis for the border.
public  BordercreateTitle(Border b)
     Adds a title decoration to the given border.
public  booleanequals(Object object)
     Object equals implementation.
public static  intfromJustificationString(String just)
     Returns the TitledBorder justification constant for the given string representation
Parameters:
  just - the String representation of the TitledBorder justificationvalue.
public static  intfromPositionString(String pos)
     Returns the TitledBorder position constant for the given string representation
Parameters:
  pos - the String representation of the TitledBorder position value.
public  intgetJustification()
     Returns the title justification.
public  intgetPosition()
     Returns the title position.
public  ColorgetTextColor()
     Returns the title text color.
public  ColorPropertygetTextColorProperty()
     Returns the color property for the title text.
public  FontgetTextFont()
    
public  StringgetTitle()
     Return the text for this border's title.
public  booleanisBottomPainted()
     Returns true if the bottom part of the border is painted.
public  booleanisIncludeTitle()
     Returns true if this border has a title.
public  booleanisLeftPainted()
     Returns true if the left part of the border is painted.
public  booleanisRightPainted()
     Returns true if the right part of the border is painted.
public  booleanisTopPainted()
     Returns true if the top part of the border is painted.
public  voidread(JETAObjectInput in)
    
public  voidsetBottomPainted(boolean bpaint)
     Set to true if the bottom part of the border is painted.
public  voidsetIncludeTitle(boolean includeTitle)
    
public  voidsetJustification(int justification)
     Sets the title justification.
public  voidsetLeftPainted(boolean bpaint)
     Set to true if the left part of the border is painted.
public  voidsetPosition(int position)
    
public  voidsetRightPainted(boolean bpaint)
     Set to true if the right part of the border is painted.
public  voidsetTextColorProperty(ColorProperty c)
     Sets the title text color.
public  voidsetTitle(String title)
     Sets the text for the title.
public  voidsetTopPainted(boolean bpaint)
     Set to true if the top part of the border is painted.
public  voidsetValue(Object obj)
    
public static  StringtoJustificationString(int just)
    
public static  StringtoPositionString(int pos)
    
public  voidupdateBean(JETABean jbean)
    
public  voidwrite(JETAObjectOutput out)
    

Field Detail
PROPERTY_ID
final public static String PROPERTY_ID(Code)
The name for this property.



VERSION
final public static int VERSION(Code)
The version of this class.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
BorderProperty
public BorderProperty()(Code)
Creates an unitialized BorderProperty instance.




Method Detail
createBorder
public Border createBorder(Component comp)(Code)
Creates a Swing border instance based on the values in this BorderProperty instance.
Parameters:
  comp - the component that is the basis for the border. This isnormally ignored except when assigning a default border on acomponent. The comp instance is used to obtains the defaultborder. a Swing border instance based on the values in thisBorderProperty instance.



createTitle
public Border createTitle(Border b)(Code)
Adds a title decoration to the given border. This method will add the title only if isIncludeTitle() is true.
Parameters:
  b - the border to decorate with a title. a border instance with the given title decoration.



equals
public boolean equals(Object object)(Code)
Object equals implementation.



fromJustificationString
public static int fromJustificationString(String just)(Code)
Returns the TitledBorder justification constant for the given string representation
Parameters:
  just - the String representation of the TitledBorder justificationvalue. the TitleBorder justification value. The constants are defined inTitledBorder: LEFTCENTERRIGHTLEADINGTRAILINGDEFAULT_JUSTIFICATION



fromPositionString
public static int fromPositionString(String pos)(Code)
Returns the TitledBorder position constant for the given string representation
Parameters:
  pos - the String representation of the TitledBorder position value. the TitleBorder position value. The constants are defined inTitledBorder: ABOVE_TOPBELOW_TOPTOPABOVE_BOTTOMBOTTOMBELOW_BOTTOMNDEFAULT_POSITION



getJustification
public int getJustification()(Code)
Returns the title justification. isIncludeTitle() must return true for this to have an effect. the title justification. TitledBorder.LEFT, CENTER, RIGHT,LEADING, TRAILING, DEFAULT_JUSTICATION



getPosition
public int getPosition()(Code)
Returns the title position. isIncludeTitle() must return true for this to have an effect. the title positionTitledBorder.ABOVE_TOP,TOP,BELOW_TOP,ABOVE_BOTTOM,BOTTOM,BELOW_BOTTOM,DEFAULT_POSITION(top)



getTextColor
public Color getTextColor()(Code)
Returns the title text color. isIncludeTitle() must return true for this to have an effect. the color of the text in the title



getTextColorProperty
public ColorProperty getTextColorProperty()(Code)
Returns the color property for the title text. the color property for the title text.



getTextFont
public Font getTextFont()(Code)
The title text font the font of the title text.



getTitle
public String getTitle()(Code)
Return the text for this border's title. isIncludeTitle() must return true for this to have an effect. the text for the title



isBottomPainted
public boolean isBottomPainted()(Code)
Returns true if the bottom part of the border is painted. Currently, only LineBorders support this capability. true if the bottom part of the border is painted



isIncludeTitle
public boolean isIncludeTitle()(Code)
Returns true if this border has a title. true if this border has a title



isLeftPainted
public boolean isLeftPainted()(Code)
Returns true if the left part of the border is painted. Currently, only LineBorders support this capability. true if the left part of the border is painted



isRightPainted
public boolean isRightPainted()(Code)
Returns true if the right part of the border is painted. Currently, only LineBorders support this capability. true if the right part of the border is painted



isTopPainted
public boolean isTopPainted()(Code)
Returns true if the top part of the border is painted. Currently, only LineBorders support this capability. true if the top part of the border is painted



read
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)
JETAPersistable Implementation



setBottomPainted
public void setBottomPainted(boolean bpaint)(Code)
Set to true if the bottom part of the border is painted. False if the bottom part of the border is not painted.



setIncludeTitle
public void setIncludeTitle(boolean includeTitle)(Code)
Set the flag that indicates if this border has a title



setJustification
public void setJustification(int justification)(Code)
Sets the title justification.
Parameters:
  justification - TitledBorder.LEFT, CENTER, RIGHT, LEADING, TRAILING,DEFAULT_JUSTICATION



setLeftPainted
public void setLeftPainted(boolean bpaint)(Code)
Set to true if the left part of the border is painted. False if the left part of the border is not painted.



setPosition
public void setPosition(int position)(Code)
Sets the title position
Parameters:
  position - TitledBorder.ABOVE_TOP,TOP,BELOW_TOP,ABOVE_BOTTOM,BOTTOM,BELOW_BOTTOM,DEFAULT_POSITION(top)



setRightPainted
public void setRightPainted(boolean bpaint)(Code)
Set to true if the right part of the border is painted. False if the right part of the border is not painted.



setTextColorProperty
public void setTextColorProperty(ColorProperty c)(Code)
Sets the title text color.



setTitle
public void setTitle(String title)(Code)
Sets the text for the title.
Parameters:
  title - the title to set



setTopPainted
public void setTopPainted(boolean bpaint)(Code)
Set to true if the top part of the border is painted. False if the top part of the border is not painted.



setValue
public void setValue(Object obj)(Code)



toJustificationString
public static String toJustificationString(int just)(Code)



toPositionString
public static String toPositionString(int pos)(Code)



updateBean
public void updateBean(JETABean jbean)(Code)



write
public void write(JETAObjectOutput out) throws IOException(Code)
JETAPersistable Implementation



Fields inherited from com.jeta.forms.store.properties.JETAProperty
final public static int VERSION(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from com.jeta.forms.store.properties.JETAProperty
public boolean equals(Object object)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected static boolean isCollectionsEqual(Collection c1, Collection c2)(Code)(Java Doc)
protected static boolean isEqual(Object o1, Object o2)(Code)(Java Doc)
public boolean isPreferred()(Code)(Java Doc)
public boolean isTransient()(Code)(Java Doc)
public void postInitialize(FormPanel panel, JETABean jbean)(Code)(Java Doc)
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void setPreferred(boolean pref)(Code)(Java Doc)
abstract public void setValue(Object obj)(Code)(Java Doc)
abstract public void updateBean(JETABean jbean)(Code)(Java Doc)
public void write(JETAObjectOutput out) throws IOException(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.