DefaultStyleSettings
Inheritance: java.lang.Object
public class DefaultStyleSettings
Settings for the default values of workbook’s style properties.
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getBuiltInPreference() | Indicates whether property for number format is preferrable when the style defines both built-in number and custom pattern. |
getClass() | |
getFontName() | Gets the default font name for the workbook |
getFontSize() | Gets the default standard font size for the workbook. |
getHorizontalAlignment() | Gets the default value for horizontal alignment |
getVerticalAlignment() | Gets the default value for vertical alignment |
hashCode() | |
notify() | |
notifyAll() | |
setBuiltInPreference(boolean value) | Indicates whether property for number format is preferrable when the style defines both built-in number and custom pattern. |
setFontName(String value) | Sets the default font name for the workbook |
setFontSize(double value) | Sets the default standard font size for the workbook. |
setHorizontalAlignment(int value) | Sets the default value for horizontal alignment |
setVerticalAlignment(int value) | Sets the default value for vertical alignment |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBuiltInPreference()
public boolean getBuiltInPreference()
Indicates whether property for number format is preferrable when the style defines both built-in number and custom pattern. Default value is false, that means by default custom pattern will be used to format values as long as it is not empty for one style.
Remarks
When loading workbook from existing template file, maybe both built-in number and custom pattern are defined for one style. This property determine whether we should use the built-in number or the custom pattern when formatting values with the style.
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getFontName()
public String getFontName()
Gets the default font name for the workbook
Returns: java.lang.String
getFontSize()
public double getFontSize()
Gets the default standard font size for the workbook.
Returns: double
getHorizontalAlignment()
public int getHorizontalAlignment()
Gets the default value for horizontal alignment
See TextAlignmentType.
Returns: int
getVerticalAlignment()
public int getVerticalAlignment()
Gets the default value for vertical alignment
See TextAlignmentType.
Returns: int
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBuiltInPreference(boolean value)
public void setBuiltInPreference(boolean value)
Indicates whether property for number format is preferrable when the style defines both built-in number and custom pattern. Default value is false, that means by default custom pattern will be used to format values as long as it is not empty for one style.
Remarks
When loading workbook from existing template file, maybe both built-in number and custom pattern are defined for one style. This property determine whether we should use the built-in number or the custom pattern when formatting values with the style.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFontName(String value)
public void setFontName(String value)
Sets the default font name for the workbook
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setFontSize(double value)
public void setFontSize(double value)
Sets the default standard font size for the workbook.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setHorizontalAlignment(int value)
public void setHorizontalAlignment(int value)
Sets the default value for horizontal alignment
See TextAlignmentType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setVerticalAlignment(int value)
public void setVerticalAlignment(int value)
Sets the default value for vertical alignment
See TextAlignmentType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |