org.odftoolkit.simple.draw
Class ControlStyleHandler

java.lang.Object
  extended by org.odftoolkit.simple.style.DefaultStyleHandler
      extended by org.odftoolkit.simple.draw.ControlStyleHandler

public class ControlStyleHandler
extends DefaultStyleHandler

This class provides functions to handle the style of a form control.

Since:
0.8

Field Summary
 
Fields inherited from class org.odftoolkit.simple.style.DefaultStyleHandler
isUseDefaultStyle, mDocument, mFamilyProperties, mGraphicProperties, mOdfElement, mParagraphProperties, mStyleElement, mTableCellProperties, mTableProperties, mTextProperties, mWritableGraphicProperties, mWritableParagraphProperties, mWritableStyleElement, mWritableTableCellProperties, mWritableTableProperties, mWritableTextProperties
 
Constructor Summary
ControlStyleHandler(Control control)
           
 
Method Summary
 void setAchorType(StyleTypeDefinitions.AnchorType achorType)
          Set how a form control is bound to a text document.
 
Methods inherited from class org.odftoolkit.simple.style.DefaultStyleHandler
getGraphicPropertiesForRead, getGraphicPropertiesForWrite, getParagraphPropertiesForRead, getParagraphPropertiesForWrite, getReadableStyleElementByName, getStyleElementForRead, getStyleElementForWrite, getTableCellPropertiesForRead, getTableCellPropertiesForWrite, getTablePropertiesForRead, getTablePropertiesForWrite, getTextPropertiesForRead, getTextPropertiesForWrite, getUsedStyleName, getWritableStyleElementByName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlStyleHandler

public ControlStyleHandler(Control control)
Method Detail

setAchorType

public void setAchorType(StyleTypeDefinitions.AnchorType achorType)
Set how a form control is bound to a text document. Default position relative and alignment will be set.

If the document is not text document, nothing will happen.

Parameters:
achorType - - the point at which a form control is bound to a text document


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.