sferyx.administration.renderers
Class CustomFormInputView
java.lang.Object
javax.swing.text.View
javax.swing.text.ComponentView
javax.swing.text.html.FormView
sferyx.administration.renderers.CustomFormInputView
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, javax.swing.SwingConstants, CSSLayoutViews
public class CustomFormInputView
- extends javax.swing.text.html.FormView
- implements CSSLayoutViews
Nested classes/interfaces inherited from class javax.swing.text.html.FormView |
javax.swing.text.html.FormView.MouseEventListener |
Fields inherited from class javax.swing.text.html.FormView |
RESET, SUBMIT |
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 |
CustomFormInputView(javax.swing.text.Element elem)
Creates a new instance of CustomFormInputView |
Methods inherited from class javax.swing.text.html.FormView |
actionPerformed, imageSubmit |
Methods inherited from class javax.swing.text.ComponentView |
getComponent, getMinimumSpan, modelToView, setParent, viewToModel |
Methods inherited from class javax.swing.text.View |
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getNextVisualPositionFrom, getParent, 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 |
CustomFormInputView
public CustomFormInputView(javax.swing.text.Element elem)
- Creates a new instance of CustomFormInputView
isAbsolutePositioning
public boolean isAbsolutePositioning()
- Specified by:
isAbsolutePositioning
in interface CSSLayoutViews
isRelativePositioning
public boolean isRelativePositioning()
- Specified by:
isRelativePositioning
in interface CSSLayoutViews
getAbsoluteX
public int getAbsoluteX()
- Specified by:
getAbsoluteX
in interface CSSLayoutViews
getAbsoluteY
public int getAbsoluteY()
- Specified by:
getAbsoluteY
in interface CSSLayoutViews
getLeftMargin
public int getLeftMargin()
- Specified by:
getLeftMargin
in interface CSSLayoutViews
getRightMargin
public int getRightMargin()
- Specified by:
getRightMargin
in interface CSSLayoutViews
getBottomMargin
public int getBottomMargin()
- Specified by:
getBottomMargin
in interface CSSLayoutViews
getTopMargin
public int getTopMargin()
- Specified by:
getTopMargin
in interface CSSLayoutViews
getAttributes
public javax.swing.text.AttributeSet getAttributes()
- Overrides:
getAttributes
in class javax.swing.text.View
submitData
protected void submitData(java.lang.String data)
- Overrides:
submitData
in class javax.swing.text.html.FormView
paint
public void paint(java.awt.Graphics g,
java.awt.Shape a)
- Overrides:
paint
in class javax.swing.text.ComponentView
paint_
public void paint_(java.awt.Graphics g,
java.awt.Shape a)
getMaximumSpan1
public float getMaximumSpan1(int axis)
getMinimumSpan1
public float getMinimumSpan1(int axis)
getPreferredSpan
public float getPreferredSpan(int axis)
- Overrides:
getPreferredSpan
in class javax.swing.text.ComponentView
getPreferredSpan1
public float getPreferredSpan1(int axis)
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e,
java.awt.Shape a,
javax.swing.text.ViewFactory f)
- Overrides:
changedUpdate
in class javax.swing.text.View
createComponent
protected java.awt.Component createComponent()
- Overrides:
createComponent
in class javax.swing.text.html.FormView
getAlignment
public float getAlignment(int axis)
- Overrides:
getAlignment
in class javax.swing.text.ComponentView
isHiddenField
public boolean isHiddenField()
getPrintableImage
public java.awt.Image getPrintableImage()
getStyleSheet
protected javax.swing.text.html.StyleSheet getStyleSheet()
getMaximumSpan
public float getMaximumSpan(int axis)
- Overrides:
getMaximumSpan
in class javax.swing.text.html.FormView
getHeightCSSValue
public float getHeightCSSValue()
getWidthCSSValue
public float getWidthCSSValue()
getBreakWeight
public int getBreakWeight(int axis,
float pos,
float len)
- Overrides:
getBreakWeight
in class javax.swing.text.View
getResizeWeight
public int getResizeWeight(int axis)
- Determines the resizability of the view along the
given axis. A value of 0 or less is not resizable.
- Overrides:
getResizeWeight
in class javax.swing.text.View
- Parameters:
axis
- may be either View.X_AXIS
or
View.Y_AXIS
- Returns:
- the weight
getRightPadding
public int getRightPadding()
getLeftPadding
public int getLeftPadding()
getTopPadding
public int getTopPadding()
getBottomPadding
public int getBottomPadding()