Record Class EssCubeView.GridPreferences
- Record Components:
indentation- member row/column indentation stylesuppressMissingRows- whether to suppress rows whose data cells are all #MissingsuppressZeroRows- whether to suppress rows whose data cells are all zerosuppressUnderscoreRows- whether to suppress rows whose member name starts with "_"- whether zooming and pivoting bring data back, or only rearrange the members. The wire has this the other way up, asnavigate, which is true when data is wanted - established live, where setting it false returned a grid of empty cellsuseBothNamesAndAliases- whether each row dimension gets two columns, its members' names in one and their aliases in the next. The wire calls thisincludeDescriptionLabel, which says nothing about what it does; established live, where turning it on widened a grid from four columns to five and put100besideColas. Row dimensions only - the column axis is unaffectedrepeatMemberLabels- whether a member label repeats down every row of its group, or only appears once at the top of the groupzoomInPreference- the server's default zoom-in depth for a plainEssCubeView.zoomIn(int, int)includeSelection- whether zooming in keeps the zoomed-on member alongside its new children, rather than replacing it with just the childrenwithinSelectedGroup- whether a zoom stays scoped to the selected group rather than applying to every member at that levelremoveUnselectedGroup- whether zooming in removes sibling groups that weren't selectedsuppressMissingColumns- whether to suppress columns whose data cells are all #Missing. Its own flag rather than a rider onsuppressMissingRows, which is what it used to be - the wire has a separatecolumnSupressionobject and ticking the row box has no business emptying columnsancestorOnTop- whether a zoom that keeps the zoomed-on member (seeincludeSelection) puts it above its children rather than below them. Sent as the wire'szoomIn.ancestor, which a 21.1 server accepts and then ignores -topandbottomreturned identical grids - so this is a faithful pass-through that currently changes nothing on Essbase
- Enclosing interface:
- EssCubeView
/preferences/grid, with no application/database/cube in its path) - they
apply to every subsequent grid operation for this connection, not just this one view, and they
persist until changed again or the session ends.
Verified live against a real server: indentation, zoomInPreference, repeatMemberLabels, includeSelection and suppressMissingRows each visibly
change the next retrieve/zoom's output. suppressZeroRows, suppressUnderscoreRows, withinSelectedGroup and removeUnselectedGroup are
wired through but not confirmed either way. suppressMissingColumns and ancestorOnTop are accepted and stored - they round-trip - and then ignored by a 21.1 server,
which returns the empty column and puts the ancestor last whatever they say.
Suppression applies only where the server is choosing what to return. EssCubeView.setLayout(java.util.List<java.lang.String>)
states a grid literally and is honoured literally, empty rows included; it is a zoom or a
retrieve that suppresses.
-
Constructor Summary
ConstructorsConstructorDescriptionGridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup) The form withoutuseBothNamesAndAliases, which defaults to off.GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup, boolean useBothNamesAndAliases) The form withuseBothNamesAndAliasesbut notnavigateWithoutData.GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup, boolean useBothNamesAndAliases, boolean navigateWithoutData) The form before column suppression andancestorOnTopexisted, which default to off.GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup, boolean useBothNamesAndAliases, boolean navigateWithoutData, boolean suppressMissingColumns, boolean ancestorOnTop) Creates an instance of aGridPreferencesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theancestorOnToprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeSelectionrecord component.Returns the value of theindentationrecord component.booleanReturns the value of thenavigateWithoutDatarecord component.booleanReturns the value of theremoveUnselectedGrouprecord component.booleanReturns the value of therepeatMemberLabelsrecord component.booleanReturns the value of thesuppressMissingColumnsrecord component.booleanReturns the value of thesuppressMissingRowsrecord component.booleanReturns the value of thesuppressUnderscoreRowsrecord component.booleanReturns the value of thesuppressZeroRowsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseBothNamesAndAliasesrecord component.booleanReturns the value of thewithinSelectedGrouprecord component.Returns the value of thezoomInPreferencerecord component.
-
Constructor Details
-
GridPreferences
public GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup, boolean useBothNamesAndAliases, boolean navigateWithoutData) The form before column suppression andancestorOnTopexisted, which default to off.Off is what those callers meant: a grid that suppressed nothing horizontally carries on not doing so, and the ancestor stays where every server put it anyway.
-
GridPreferences
public GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup, boolean useBothNamesAndAliases) The form withuseBothNamesAndAliasesbut notnavigateWithoutData.- Parameters:
useBothNamesAndAliases- whether each row dimension gets a name column and an alias one
-
GridPreferences
public GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup) The form withoutuseBothNamesAndAliases, which defaults to off.Kept so that every caller written before that existed still compiles, and because off is what they meant: a grid that showed one column per row dimension carries on doing so.
-
GridPreferences
public GridPreferences(EssCubeView.Indentation indentation, boolean suppressMissingRows, boolean suppressZeroRows, boolean suppressUnderscoreRows, boolean repeatMemberLabels, EssCubeView.ZoomInPreference zoomInPreference, boolean includeSelection, boolean withinSelectedGroup, boolean removeUnselectedGroup, boolean useBothNamesAndAliases, boolean navigateWithoutData, boolean suppressMissingColumns, boolean ancestorOnTop) Creates an instance of aGridPreferencesrecord class.- Parameters:
indentation- the value for theindentationrecord componentsuppressMissingRows- the value for thesuppressMissingRowsrecord componentsuppressZeroRows- the value for thesuppressZeroRowsrecord componentsuppressUnderscoreRows- the value for thesuppressUnderscoreRowsrecord componentrepeatMemberLabels- the value for therepeatMemberLabelsrecord componentzoomInPreference- the value for thezoomInPreferencerecord componentincludeSelection- the value for theincludeSelectionrecord componentwithinSelectedGroup- the value for thewithinSelectedGrouprecord componentremoveUnselectedGroup- the value for theremoveUnselectedGrouprecord componentuseBothNamesAndAliases- the value for theuseBothNamesAndAliasesrecord componentnavigateWithoutData- the value for thenavigateWithoutDatarecord componentsuppressMissingColumns- the value for thesuppressMissingColumnsrecord componentancestorOnTop- the value for theancestorOnToprecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
indentation
Returns the value of theindentationrecord component.- Returns:
- the value of the
indentationrecord component
-
suppressMissingRows
public boolean suppressMissingRows()Returns the value of thesuppressMissingRowsrecord component.- Returns:
- the value of the
suppressMissingRowsrecord component
-
suppressZeroRows
public boolean suppressZeroRows()Returns the value of thesuppressZeroRowsrecord component.- Returns:
- the value of the
suppressZeroRowsrecord component
-
suppressUnderscoreRows
public boolean suppressUnderscoreRows()Returns the value of thesuppressUnderscoreRowsrecord component.- Returns:
- the value of the
suppressUnderscoreRowsrecord component
-
repeatMemberLabels
public boolean repeatMemberLabels()Returns the value of therepeatMemberLabelsrecord component.- Returns:
- the value of the
repeatMemberLabelsrecord component
-
zoomInPreference
Returns the value of thezoomInPreferencerecord component.- Returns:
- the value of the
zoomInPreferencerecord component
-
includeSelection
public boolean includeSelection()Returns the value of theincludeSelectionrecord component.- Returns:
- the value of the
includeSelectionrecord component
-
withinSelectedGroup
public boolean withinSelectedGroup()Returns the value of thewithinSelectedGrouprecord component.- Returns:
- the value of the
withinSelectedGrouprecord component
-
removeUnselectedGroup
public boolean removeUnselectedGroup()Returns the value of theremoveUnselectedGrouprecord component.- Returns:
- the value of the
removeUnselectedGrouprecord component
-
useBothNamesAndAliases
public boolean useBothNamesAndAliases()Returns the value of theuseBothNamesAndAliasesrecord component.- Returns:
- the value of the
useBothNamesAndAliasesrecord component
-
suppressMissingColumns
public boolean suppressMissingColumns()Returns the value of thesuppressMissingColumnsrecord component.- Returns:
- the value of the
suppressMissingColumnsrecord component
-
ancestorOnTop
public boolean ancestorOnTop()Returns the value of theancestorOnToprecord component.- Returns:
- the value of the
ancestorOnToprecord component
-