public class PrintSet extends BaseManager implements Item
PrintSetsList.getPrintSet(String)
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
Modifier and Type | Field and Description |
---|---|
static int |
PAGE_ORIENTATION_OPTION_LANDSCAPE |
static int |
PAGE_ORIENTATION_OPTION_PORTRAIT |
static int |
PRINT_MODE_OPTION_ADVANCED |
static int |
PRINT_MODE_OPTION_SIMPLE |
static int |
SIMPLE_MODE_RVS_MODE_OPTION_CURRENT_RVS |
static int |
SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS |
static int |
UNIT_DISPLAY_OPTION_CM |
static int |
UNIT_DISPLAY_OPTION_INCH |
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
JPack |
exportSet()
Exports this set into a
JPack . |
java.lang.String |
getDescription(int languageID)
Returns the description for the given language id.
|
java.lang.String |
getDisplayName(int languageID,
boolean fallbackToDefaultName)
Returns the display name for the given language id.
|
int |
getDisplayUnit()
Returns the unit to use for displaying measurements.
|
java.lang.String |
getID()
Returns the UID of the item in the items namespace.
|
boolean |
getIsDefault()
Returns whether this print set is the default print set.
|
java.lang.String |
getName()
Returns the name of this print set.
|
java.lang.String |
getPageFormat()
Returns a display string for the chosen page format.
|
double |
getPageHeight()
Returns the page format height.
|
double |
getPageMarginBottom()
Returns the page margin at the bottom.
|
double |
getPageMarginLeft()
Returns the page margin at the left side.
|
double |
getPageMarginRight()
Returns the page margin at the right side.
|
double |
getPageMarginTop()
Returns the page margin at the top.
|
int |
getPageOrientation()
Returns the page orientation.
|
double |
getPageWidth()
Returns the page format width.
|
int |
getPrintMode()
Returns the mode being used when printing using this print set.
|
PrintSetAdvanced |
getPrintSetAdvanced()
Returns the settings for printing in advanced mode.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to view this set.
|
int |
getSimpleMode()
Returns whether the current record view set or a specific record view set should be used if this print set is in simple mode and used for printing.
|
java.lang.String |
getSimpleModeRecordViewSet()
Returns the name of the record view set to use when printing using this print set in simple mode and with
getSimpleMode() returning SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS . |
java.lang.String |
getSimpleModeViewModeName()
Returns the view mode to use when printing in simple mode.
|
boolean |
isDefault()
Returns whether this item is the default item.
|
boolean |
isSharingRestricted()
Returns whether the set visibility is restricted to a group of users or roles.
|
void |
setDescription(int languageID,
java.lang.String description)
Sets the description for the given language.
|
void |
setDisplayName(int languageID,
java.lang.String displayName)
Sets the display name for the given language.
|
void |
setDisplayUnit(int unit)
Configures the unit to use for displaying measurements.
|
void |
setPageFormat(java.lang.String format)
Sets the display string for the chosen format.
|
void |
setPageHeight(double height)
Sets the page format height.
|
void |
setPageMarginBottom(double margin)
Sets the page margin at the bottom.
|
void |
setPageMarginLeft(double margin)
Sets the page margin at the left side.
|
void |
setPageMarginRight(double margin)
Sets the page margin at the right side.
|
void |
setPageMarginTop(double margin)
Sets the page margin at the top.
|
void |
setPageOrientation(int orientation)
Configures the page orientation.
|
void |
setPageWidth(double width)
Sets the page format width.
|
void |
setPrintMode(int mode)
Configures the mode being used when printing using this print set.
|
void |
setSharingRestricted(boolean value)
Sets whether the set visibility is restricted to a group of users or roles.
|
void |
setSimpleMode(int mode)
Sets whether the current record view set or a specific record view set should be used if this print set is in simple mode and used for printing.
|
void |
setSimpleModeRecordViewSet(java.lang.String rvs)
Sets the name of the record view set to use when printing using this print set in simple mode and with
getSimpleMode() returning SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS . |
void |
setSimpleModeViewModeName(java.lang.String value)
Configures the view mode to use when printing in simple mode.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final int PAGE_ORIENTATION_OPTION_PORTRAIT
public static final int PAGE_ORIENTATION_OPTION_LANDSCAPE
public static final int UNIT_DISPLAY_OPTION_CM
public static final int UNIT_DISPLAY_OPTION_INCH
public static final int PRINT_MODE_OPTION_SIMPLE
public static final int PRINT_MODE_OPTION_ADVANCED
public static final int SIMPLE_MODE_RVS_MODE_OPTION_CURRENT_RVS
public static final int SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS
public java.lang.String getName()
public boolean getIsDefault()
public double getPageWidth()
public void setPageWidth(double width)
width
- page width in mmpublic double getPageHeight()
public void setPageHeight(double height)
height
- page height in mmpublic java.lang.String getPageFormat()
public void setPageFormat(java.lang.String format)
format
- display format stringpublic double getPageMarginTop()
public void setPageMarginTop(double margin)
margin
- top margin in mmpublic double getPageMarginBottom()
public void setPageMarginBottom(double margin)
margin
- bottom margin in mmpublic double getPageMarginLeft()
public void setPageMarginLeft(double margin)
margin
- left margin in mmpublic double getPageMarginRight()
public void setPageMarginRight(double margin)
margin
- right margin in mmpublic int getPageOrientation()
PAGE_ORIENTATION_OPTION_PORTRAIT
and PAGE_ORIENTATION_OPTION_LANDSCAPE
. Defaults to
PAGE_ORIENTATION_OPTION_PORTRAIT
.public void setPageOrientation(int orientation)
PAGE_ORIENTATION_OPTION_PORTRAIT
and PAGE_ORIENTATION_OPTION_LANDSCAPE
.orientation
- page orientationpublic int getDisplayUnit()
UNIT_DISPLAY_OPTION_CM
and UNIT_DISPLAY_OPTION_INCH
.
Defaults to UNIT_DISPLAY_OPTION_CM
.public void setDisplayUnit(int unit)
UNIT_DISPLAY_OPTION_CM
and UNIT_DISPLAY_OPTION_INCH
.unit
- measurement display unitpublic int getPrintMode()
PRINT_MODE_OPTION_SIMPLE
and PRINT_MODE_OPTION_ADVANCED
. Defaults to PRINT_MODE_OPTION_SIMPLE
.public void setPrintMode(int mode)
PRINT_MODE_OPTION_SIMPLE
and PRINT_MODE_OPTION_ADVANCED
.mode
- print mode to use when printing using this print setpublic int getSimpleMode()
SIMPLE_MODE_RVS_MODE_OPTION_CURRENT_RVS
and SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS
. Defaults to SIMPLE_MODE_RVS_MODE_OPTION_CURRENT_RVS
.public void setSimpleMode(int mode)
SIMPLE_MODE_RVS_MODE_OPTION_CURRENT_RVS
and SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS
.mode
- record view set mode when printing in simple modesetSimpleModeRecordViewSet(String)
public java.lang.String getSimpleModeRecordViewSet()
getSimpleMode()
returning SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS
. Defaults to null.public void setSimpleModeRecordViewSet(java.lang.String rvs)
getSimpleMode()
returning SIMPLE_MODE_RVS_MODE_OPTION_SPECIFIC_RVS
.rvs
- record view set namepublic java.lang.String getSimpleModeViewModeName()
RecordView.RECORD_VIEW_TYPE_THUMBNAIL
, RecordView.RECORD_VIEW_TYPE_DETAILS
, RecordView.RECORD_VIEW_TYPE_INFO_VIEW
, RecordView.RECORD_VIEW_TYPE_PALETTE
and RecordView.RECORD_VIEW_TYPE_PREVIEW_VIEW
. Defaults to null.public void setSimpleModeViewModeName(java.lang.String value)
RecordView.RECORD_VIEW_TYPE_THUMBNAIL
, RecordView.RECORD_VIEW_TYPE_DETAILS
, RecordView.RECORD_VIEW_TYPE_INFO_VIEW
, RecordView.RECORD_VIEW_TYPE_PALETTE
and RecordView.RECORD_VIEW_TYPE_PREVIEW_VIEW
.value
- view mode to use when printing in simple modepublic PrintSetAdvanced getPrintSetAdvanced()
public java.lang.String getID()
Item
public boolean isDefault()
Item
public java.lang.String getDescription(int languageID)
getDescription
in interface Item
languageID
- specifying the language for the descriptionpublic void setDescription(int languageID, java.lang.String description)
setDescription
in interface Item
languageID
- the language to set the description fordescription
- the new descriptionpublic java.lang.String getDisplayName(int languageID, boolean fallbackToDefaultName)
getDisplayName
in interface Item
languageID
- specifying the language for the display namefallbackToDefaultName
- when set to true this method returns the default name when now localized display name is available otherwise nullpublic void setDisplayName(int languageID, java.lang.String displayName)
setDisplayName
in interface Item
languageID
- the language to set the display name fordisplayName
- the new display namepublic JPack exportSet()
JPack
.exportSet
in interface Item
JPack
PrintSetsList.importSet(com.canto.cumulus.utils.JPack, SetImportDuplicatesMode)
public boolean isSharingRestricted()
isSharingRestricted
in interface Item
public void setSharingRestricted(boolean value)
setSharingRestricted
in interface Item
value
- set to true if the set visibility should be restricted to a group of users or rolespublic RestrictionsList getRestrictionsList()
isSharingRestricted()
returns
true.getRestrictionsList
in interface Item
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.