com.jtechlabs.ui.widget.directorychooser
Class AccessEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.jtechlabs.ui.widget.directorychooser.AccessEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class AccessEditor
extends java.beans.PropertyEditorSupport

Property editor for editing access rights of JDirectoryChooser

Version:
1.0
Author:
Aleksey Prochukhan

Constructor Summary
AccessEditor()
           
 
Method Summary
 java.lang.String getAsText()
          The access property value as a string.
 java.awt.Component getCustomEditor()
          Returns custom editor for this component.
 boolean isPaintable()
          Determines whether this property editor is paintable.
 void paintValue(java.awt.Graphics g, java.awt.Rectangle box)
          Paints a string with assigned access rights.
 boolean supportsCustomEditor()
          Property supports custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getTags, getValue, removePropertyChangeListener, setAsText, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessEditor

public AccessEditor()
Method Detail

getAsText

public java.lang.String getAsText()
The access property value as a string.

Returns:
null

isPaintable

public boolean isPaintable()
Determines whether this property editor is paintable.

Returns:
true

supportsCustomEditor

public boolean supportsCustomEditor()
Property supports custom editor.

Returns:
true

getCustomEditor

public java.awt.Component getCustomEditor()
Returns custom editor for this component.

Returns:
the custom editor for this component.

paintValue

public void paintValue(java.awt.Graphics g,
                       java.awt.Rectangle box)
Paints a string with assigned access rights.

Parameters:
g - the graphics context.
box - the rectangle within graphics object into which we should paint.


Copyright © 2005 JTechLabs.com All Rights Reserved.