public void addTextListener(XTextListener _xTextListener) {
   for (int i = 0; i < super.ControlGroupVector.size(); i++) {
     ControlRow curControlRow = (ControlRow) ControlGroupVector.get(i);
     XTextComponent xTextBox = curControlRow.xTextComponent;
     if ((xTextBox != null) && (_xTextListener != null)) {
       xTextBox.addTextListener(_xTextListener);
     }
   }
 }
예제 #2
0
 public void initialize(RecordParser _CurDBMetaData) {
   String FirstCommandName = _CurDBMetaData.getIncludedCommandNames()[0];
   String DefaultName =
       Desktop.getUniqueName(_CurDBMetaData.getReportDocuments(), FirstCommandName);
   if (!DefaultName.equals(OldDefaultName)) {
     OldDefaultName = DefaultName;
   }
   xTitleTextBox.setText(DefaultName);
 }
예제 #3
0
 public String getStoreName() {
   if (CurUnoDialog != null) {
     String LocStoreName = xTitleTextBox.getText();
     if (!LocStoreName.equals(PropertyNames.EMPTY_STRING)) {
       StoreName = LocStoreName;
     }
   }
   return StoreName;
 }
예제 #4
0
  /** This function is called if one of the radio buttons is pressed */
  private void toggleSubTemplateControls() {
    // String sStorePath = PropertyNames.EMPTY_STRING;
    Short iState =
        (Short)
            CurUnoDialog.getControlProperty(
                "optCreateReportTemplate", PropertyNames.PROPERTY_STATE);
    boolean bDoTemplateEnable = iState.shortValue() == 1;
    CurUnoDialog.setControlProperty(
        "optEditTemplate", PropertyNames.PROPERTY_ENABLED, bDoTemplateEnable);
    CurUnoDialog.setControlProperty(
        "optUseTemplate", PropertyNames.PROPERTY_ENABLED, bDoTemplateEnable);
    CurUnoDialog.setControlProperty(
        "lblHowProceed", PropertyNames.PROPERTY_ENABLED, bDoTemplateEnable);

    String sTitle = xTitleTextBox.getText();
    boolean bDoEnable = sTitle.equals(PropertyNames.EMPTY_STRING);
    CurUnoDialog.enableFinishButton(!bDoEnable);
  }
예제 #5
0
 private void changeReportTitle() {
   final String TitleName = xTitleTextBox.getText();
   CurReportDocument.liveupdate_updateReportTitle(TitleName);
   CurUnoDialog.enableFinishButton(!PropertyNames.EMPTY_STRING.equals(TitleName));
 }