/** * Show the specified text using the same hover dialog as is used to show * decorator descriptions. Normally, a decoration's description text will be * shown in an info hover over the field's control whenever the mouse hovers * over the decoration. This method can be used to show a decoration's * description text at other times (such as when the control receives * focus), or to show other text associated with the field. * * <p> * If there is currently a hover visible, the hover's text will be replaced * with the specified text. * * @param text * the text to be shown in the info hover, or <code>null</code> * if no text should be shown. */ public void showHoverText(String text) { showHoverText(text, control); }
/** * Show the specified text using the same hover dialog as is used to show * decorator descriptions. Normally, a decoration's description text will be * shown in an info hover over the field's control whenever the mouse hovers * over the decoration. This method can be used to show a decoration's * description text at other times (such as when the control receives * focus), or to show other text associated with the field. * * <p> * If there is currently a hover visible, the hover's text will be replaced * with the specified text. * * @param text * the text to be shown in the info hover, or <code>null</code> * if no text should be shown. */ public void showHoverText(String text) { showHoverText(text, control); }
/** * Show the specified text using the same hover dialog as is used to show * decorator descriptions. Normally, a decoration's description text will be * shown in an info hover over the field's control whenever the mouse hovers * over the decoration. This method can be used to show a decoration's * description text at other times (such as when the control receives * focus), or to show other text associated with the field. * * <p> * If there is currently a hover visible, the hover's text will be replaced * with the specified text. * * @param text * the text to be shown in the info hover, or <code>null</code> * if no text should be shown. */ public void showHoverText(String text) { showHoverText(text, control); }
/** * Update the specified decoration. This message should be used if the image * or description in the decoration have changed. This message has no * immediate effect if the decoration is not visible, and no effect at all * if the decoration was not previously added to the field. * * @param decoration * the decoration to be hidden. */ public void updateDecoration(FieldDecoration decoration) { FieldDecorationData data = getDecorationData(decoration); if (data == null) { return; } if (data.label != null) { data.label.setImage(decoration.getImage()); // If the decoration is being shown, and a hover is active, // update the hover text to display the new description. if (data.label.getVisible() == true && hover != null) { showHoverText(decoration.getDescription(), data.label); } } }
/** * Update the specified decoration. This message should be used if the image * or description in the decoration have changed. This message has no * immediate effect if the decoration is not visible, and no effect at all * if the decoration was not previously added to the field. * * @param decoration * the decoration to be hidden. */ public void updateDecoration(FieldDecoration decoration) { FieldDecorationData data = getDecorationData(decoration); if (data == null) { return; } if (data.label != null) { data.label.setImage(decoration.getImage()); // If the decoration is being shown, and a hover is active, // update the hover text to display the new description. if (data.label.getVisible() == true && hover != null) { showHoverText(decoration.getDescription(), data.label); } } }
/** * Update the specified decoration. This message should be used if the image * or description in the decoration have changed. This message has no * immediate effect if the decoration is not visible, and no effect at all * if the decoration was not previously added to the field. * * @param decoration * the decoration to be hidden. */ public void updateDecoration(FieldDecoration decoration) { FieldDecorationData data = getDecorationData(decoration); if (data == null) { return; } if (data.label != null) { data.label.setImage(decoration.getImage()); // If the decoration is being shown, and a hover is active, // update the hover text to display the new description. if (data.label.getVisible() == true && hover != null) { showHoverText(decoration.getDescription(), data.label); } } }
showHoverText( decDatas[i].decoration.getDescription(), label );