sferyx.administration.renderers
Class CustomizableObjectView

java.lang.Object
  extended by javax.swing.text.View
      extended by javax.swing.text.ComponentView
          extended by sferyx.administration.renderers.CustomizableObjectView
All Implemented Interfaces:
javax.swing.SwingConstants

public class CustomizableObjectView
extends javax.swing.text.ComponentView

Used for custom objects - can initialize the component according the KEY/VALUEs passed in via the <param> elements in the corresponding <object> element.


Field Summary
 
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
CustomizableObjectView(javax.swing.text.Element elem)
          Creates a new instance of CustomObjectView
 
Method Summary
protected  java.awt.Component createComponent()
           
 int getNextVisualPositionFrom(int pos, javax.swing.text.Position.Bias b, java.awt.Shape a, int direction, javax.swing.text.Position.Bias[] biasRet)
           
static void setParameters(java.awt.Component comp, javax.swing.text.AttributeSet attr)
          Initialize this component according the KEY/VALUEs passed in via the <param> elements in the corresponding <object> element.
 
Methods inherited from class javax.swing.text.ComponentView
getAlignment, getComponent, getMaximumSpan, getMinimumSpan, getPreferredSpan, modelToView, paint, setParent, viewToModel
 
Methods inherited from class javax.swing.text.View
append, breakView, changedUpdate, createFragment, forwardUpdate, forwardUpdateToView, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, insertUpdate, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, removeUpdate, replace, setSize, updateChildren, updateLayout, viewToModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomizableObjectView

public CustomizableObjectView(javax.swing.text.Element elem)
Creates a new instance of CustomObjectView

Method Detail

createComponent

protected java.awt.Component createComponent()
Overrides:
createComponent in class javax.swing.text.ComponentView

setParameters

public static void setParameters(java.awt.Component comp,
                                 javax.swing.text.AttributeSet attr)
Initialize this component according the KEY/VALUEs passed in via the <param> elements in the corresponding <object> element.


getNextVisualPositionFrom

public int getNextVisualPositionFrom(int pos,
                                     javax.swing.text.Position.Bias b,
                                     java.awt.Shape a,
                                     int direction,
                                     javax.swing.text.Position.Bias[] biasRet)
                              throws javax.swing.text.BadLocationException
Overrides:
getNextVisualPositionFrom in class javax.swing.text.View
Throws:
javax.swing.text.BadLocationException