Interface IExpressionButton
-
public interface IExpressionButtonA utility class to display Expression builder and button
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(org.eclipse.swt.widgets.Listener listener)Adds a listener, which will be notified with a SWT.Mofigy event if the expression text has changed.java.lang.StringgetDisplayExpression()Returns the display string in expression builder.java.lang.StringgetExpression()Returns the expression that's saved in modeljava.lang.StringgetExpressionType()Returns the type of the expression.booleanisCube()Returns whether the chart is using a cube.booleanisEnabled()Returns the enabled statevoidsetAccessor(org.eclipse.birt.chart.ui.util.ChartUIUtil.EAttributeAccessor<java.lang.String> accessor)Sets the accessor, with which the expression will be load from and save to.voidsetAssitField(IAssistField assistField)Set the AssistField.voidsetBindingName(java.lang.String bindingName, boolean bNotifyEvents)Sets the expression to a binding expression created with the given binding name and the current expression type.voidsetEnabled(boolean bEnabled)Sets the enabled statevoidsetExpression(java.lang.String expr)Sets the expression that's saved in model, no notifications will be sent.voidsetExpression(java.lang.String expr, boolean bNotifyEvents)Sets the expression that's saved in modelvoidsetPredefinedQuery(java.lang.Object[] predefinedQuery)
-
-
-
Method Detail
-
getExpression
java.lang.String getExpression()
Returns the expression that's saved in model- Returns:
- the expression that's saved in model
-
setBindingName
void setBindingName(java.lang.String bindingName, boolean bNotifyEvents)Sets the expression to a binding expression created with the given binding name and the current expression type.- Parameters:
bindingName- the binding namebNotifyEvents- indicates whether the listeners needed to notified.
-
setExpression
void setExpression(java.lang.String expr)
Sets the expression that's saved in model, no notifications will be sent.- Parameters:
expr- the expression that's saved in model
-
setExpression
void setExpression(java.lang.String expr, boolean bNotifyEvents)Sets the expression that's saved in model- Parameters:
expr- the expression that's saved in modelbNotifyEvents- indicates whether the listeners needed to notified.
-
getDisplayExpression
java.lang.String getDisplayExpression()
Returns the display string in expression builder. This may be different from the value saved in model.- Returns:
- the display string in expression builder
-
setEnabled
void setEnabled(boolean bEnabled)
Sets the enabled state- Parameters:
bEnabled- enabled state
-
isEnabled
boolean isEnabled()
Returns the enabled state- Returns:
- the enabled state
-
addListener
void addListener(org.eclipse.swt.widgets.Listener listener)
Adds a listener, which will be notified with a SWT.Mofigy event if the expression text has changed.- Parameters:
listener-
-
setAccessor
void setAccessor(org.eclipse.birt.chart.ui.util.ChartUIUtil.EAttributeAccessor<java.lang.String> accessor)
Sets the accessor, with which the expression will be load from and save to.- Parameters:
accessor-
-
getExpressionType
java.lang.String getExpressionType()
Returns the type of the expression.- Returns:
- The the type of the expression.
-
isCube
boolean isCube()
Returns whether the chart is using a cube.- Returns:
- Whether the chart is using a cube.
-
setAssitField
void setAssitField(IAssistField assistField)
Set the AssistField.- Parameters:
assistField-
-
setPredefinedQuery
void setPredefinedQuery(java.lang.Object[] predefinedQuery)
- Parameters:
predefinedQuery-
-
-