Class Image
java.lang.Object
com.independentsoft.office.odf.forms.Control
com.independentsoft.office.odf.forms.Image
- All Implemented Interfaces:
IFormContent,IContentElement
Defines a graphical button control.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.forms.Control
eventListeners, parent, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the specific concrete rendition or implementation of a control that should be instantiated.getID()Gets an identifier for a control element.Gets the location of a file containing image data.getName()Gets the name of a form or control element.Returns the parent content element.intGets tabbing navigation order of controls within a form.Gets the target frame.Locates a remote resource.getTitle()Gets additional information about a control.getType()Gets the type of a button.getValue()Gets the default value of an input control.booleanSpecifies whether a control can accept user input.booleanSpecifies whether a control is included in the tabbing navigation order.booleanSpecifies whether a control is printed when a user prints a document in which the control is contained.voidsetControlImplementation(String controlImplementation)Sets the specific concrete rendition or implementation of a control that should be instantiated.voidsetDisabled(boolean isDisabled)Specifies whether a control can accept user input.voidsetEnableTabbingNavigation(boolean enableTabbingNavigation)Specifies whether a control is included in the tabbing navigation order.voidSets an identifier for a control element.voidsetImageLink(String imageLink)Sets the location of a file containing image data.voidSets the name of a form or control element.voidsetParent(IContentElement parent)Sets the parent content element.voidsetPrintable(boolean isPrintable)Specifies whether a control is printed when a user prints a document in which the control is contained.voidsetTabIndex(int tabIndex)Sets tabbing navigation order of controls within a form.voidsetTargetFrame(String targetFrame)Sets the target frame.voidsetTargetLocation(String targetLocation)Locates a remote resource.voidSets additional information about a control.voidsetType(ButtonType type)Sets the type of a button.voidSets the default value of an input control.toString()Converts the value of the current Image object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.forms.Control
getEventListeners, getProperties
-
Constructor Details
-
Image
public Image()Initializes a new instance of the Image class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classControl- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classControl- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classControl- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIFormContent- Specified by:
clonein classControl- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Image object to its equivalent string representation. -
getName
Gets the name of a form or control element.- Returns:
- the name
-
setName
Sets the name of a form or control element.- Parameters:
name- the new name
-
getControlImplementation
Gets the specific concrete rendition or implementation of a control that should be instantiated.- Returns:
- the control implementation
-
setControlImplementation
Sets the specific concrete rendition or implementation of a control that should be instantiated.- Parameters:
controlImplementation- the new control implementation
-
getID
Gets an identifier for a control element.- Returns:
- the id
-
setID
Sets an identifier for a control element.- Parameters:
id- the new id
-
getValue
Gets the default value of an input control.- Returns:
- the value
-
setValue
Sets the default value of an input control.- Parameters:
value- the new value
-
isDisabled
public boolean isDisabled()Specifies whether a control can accept user input.- Returns:
- true, if is disabled
-
setDisabled
public void setDisabled(boolean isDisabled)Specifies whether a control can accept user input.- Parameters:
isDisabled- the new disabled
-
isPrintable
public boolean isPrintable()Specifies whether a control is printed when a user prints a document in which the control is contained.- Returns:
- true, if is printable
-
setPrintable
public void setPrintable(boolean isPrintable)Specifies whether a control is printed when a user prints a document in which the control is contained.- Parameters:
isPrintable- the new printable
-
getTabIndex
public int getTabIndex()Gets tabbing navigation order of controls within a form.- Returns:
- the tab index
-
setTabIndex
public void setTabIndex(int tabIndex)Sets tabbing navigation order of controls within a form.- Parameters:
tabIndex- the new tab index
-
getTitle
Gets additional information about a control.- Returns:
- the title
-
setTitle
Sets additional information about a control.- Parameters:
title- the new title
-
getType
Gets the type of a button.- Returns:
- the type
-
setType
Sets the type of a button.- Parameters:
type- the new type
-
getImageLink
Gets the location of a file containing image data.- Returns:
- the image link
-
setImageLink
Sets the location of a file containing image data.- Parameters:
imageLink- the new image link
-
getTargetFrame
Gets the target frame. The defined values are: - _blank: The referenced document is displayed in a new frame. - _parent: The referenced document is displayed in the parent frame of the current frame. - _self: The referenced document replaces the content of the current frame.- Returns:
- the target frame
-
setTargetFrame
Sets the target frame. The defined values are: - _blank: The referenced document is displayed in a new frame. - _parent: The referenced document is displayed in the parent frame of the current frame. - _self: The referenced document replaces the content of the current frame.- Parameters:
targetFrame- the new target frame
-
getTargetLocation
Locates a remote resource.- Returns:
- the target location
-
setTargetLocation
Locates a remote resource.- Parameters:
targetLocation- the new target location
-