org.ujoframework.swing
Class UjoPropertyRow

java.lang.Object
  extended by org.ujoframework.extensions.AbstractUjo
      extended by org.ujoframework.extensions.AbstractUjoExt<UJO>
          extended by org.ujoframework.implementation.map.MapUjoExt<UjoPropertyRow>
              extended by org.ujoframework.swing.UjoPropertyRow
All Implemented Interfaces:
java.io.Serializable, UjoCloneable, UjoExt<UjoPropertyRow>, UjoMiddle<UjoPropertyRow>, UjoTextable, Ujo

public class UjoPropertyRow
extends MapUjoExt<UjoPropertyRow>

An implementation of TableModel for List of Ujo objects.
An typical usage is an preview of UjoProperty list of the one Ujo object include values.

Author:
Pavel Ponec
See Also:
Serialized Form

Field Summary
protected  Ujo content
           
static Property<UjoPropertyRow,java.lang.Object> P_DEFAULT
          Default Value
static Property<UjoPropertyRow,java.lang.Integer> P_INDEX
          Index of property
static Property<UjoPropertyRow,java.lang.String> P_NAME
          Name of property
static Property<UjoPropertyRow,java.lang.String> P_TEXT
          Text Value
static Property<UjoPropertyRow,java.lang.Class> P_TYPE
          Type of property
static Property<UjoPropertyRow,java.lang.String> P_TYPENAME
          Class name without packages
static Property<UjoPropertyRow,java.lang.Object> P_USER1
          A user column can be used in table renderer for any purpose
static Property<UjoPropertyRow,java.lang.Object> P_USER2
          A user column can be used in table renderer for any purpose
static Property<UjoPropertyRow,java.lang.Object> P_VALUE
          Value
protected  UjoProperty property
           
 
Fields inherited from class org.ujoframework.implementation.map.MapUjoExt
data
 
Constructor Summary
UjoPropertyRow(Ujo content, UjoProperty property)
           
 
Method Summary
 UjoProperty getProperty()
          Returns an assigned property (a parameter e.g.)
 java.lang.Object readValue(UjoProperty aProperty)
          Read Value
 java.lang.String toString()
          Property name + value
 void writeValue(UjoProperty aProperty, java.lang.Object value)
          Write value
 void writeValueString(UjoProperty aProperty, java.lang.String value, java.lang.Class subtype, UjoAction action)
          Write a text value.
 
Methods inherited from class org.ujoframework.implementation.map.MapUjoExt
newListProperty, newProperty, newProperty, newPropertyList
 
Methods inherited from class org.ujoframework.extensions.AbstractUjoExt
add, clone, copyTo, copyTo, createPropertyList, equals, findProperty, get, get, get, get, getItemCount, getText, isDefault, list, remove, remove, set, set, set, set, setText
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
equals, init, init, readAuthorization, readProperties, readUjoManager, readValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujoframework.Ujo
readAuthorization, readProperties
 

Field Detail

P_INDEX

public static final Property<UjoPropertyRow,java.lang.Integer> P_INDEX
Index of property


P_NAME

public static final Property<UjoPropertyRow,java.lang.String> P_NAME
Name of property


P_TYPE

public static final Property<UjoPropertyRow,java.lang.Class> P_TYPE
Type of property


P_TYPENAME

public static final Property<UjoPropertyRow,java.lang.String> P_TYPENAME
Class name without packages


P_VALUE

public static final Property<UjoPropertyRow,java.lang.Object> P_VALUE
Value


P_TEXT

public static final Property<UjoPropertyRow,java.lang.String> P_TEXT
Text Value


P_DEFAULT

public static final Property<UjoPropertyRow,java.lang.Object> P_DEFAULT
Default Value


P_USER1

public static final Property<UjoPropertyRow,java.lang.Object> P_USER1
A user column can be used in table renderer for any purpose


P_USER2

public static final Property<UjoPropertyRow,java.lang.Object> P_USER2
A user column can be used in table renderer for any purpose


content

protected final Ujo content

property

protected final UjoProperty property
Constructor Detail

UjoPropertyRow

public UjoPropertyRow(Ujo content,
                      UjoProperty property)
Method Detail

writeValue

public void writeValue(UjoProperty aProperty,
                       java.lang.Object value)
Write value

Specified by:
writeValue in interface Ujo
Overrides:
writeValue in class MapUjoExt<UjoPropertyRow>
Parameters:
aProperty - Property must be a direct type only!
See Also:
Property.setValue(Ujo,Object)

writeValueString

public void writeValueString(UjoProperty aProperty,
                             java.lang.String value,
                             java.lang.Class subtype,
                             UjoAction action)
Write a text value.

Specified by:
writeValueString in interface UjoTextable
Overrides:
writeValueString in class AbstractUjo
Parameters:
aProperty - A direct property only. See a method UjoProperty.isDirect().
value - String value
subtype - Type can be a subtype of a Property.type. If type is null, then a property.type is used.
action - A context of the action. The action must not be null, however there is allowed to use a dummy constant UjoAction.DUMMY .

readValue

public java.lang.Object readValue(UjoProperty aProperty)
Read Value

Specified by:
readValue in interface Ujo
Overrides:
readValue in class MapUjoExt<UjoPropertyRow>
Parameters:
aProperty - Property must be a direct type only!
Returns:
Property value
See Also:
Property.getValue(Ujo)

getProperty

public final UjoProperty getProperty()
Returns an assigned property (a parameter e.g.)


toString

public java.lang.String toString()
Property name + value

Overrides:
toString in class AbstractUjo


Copyright © 2010. All Rights Reserved.