Package com.commander4j.db

Examples of com.commander4j.db.JDBModule


  }

  private void populateAssignedList() {
    assignedModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);

    assignedList = mod.getModulesAssignedtoRFMenu();

    if (assignedList.size() > 0)
    {
      for (int j = 0; j < assignedList.size(); j++)
      {
View Full Code Here


  }

  private void populateUnAssignedList() {
    unassignedModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);

    unassignedList = mod.getModulesUnAssignedtoRFMenu();

    if (unassignedList.size() > 0)
    {
      for (int j = 0; j < unassignedList.size(); j++)
      {
View Full Code Here

  }

  private void populateAssignedList() {
    assignedModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);

    assignedList = mod.getModulesAssignedtoToolbar();

    if (assignedList.size() > 0)
    {
      for (int j = 0; j < assignedList.size(); j++)
      {
View Full Code Here

  }

  private void populateUnAssignedList() {
    unassignedModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);

    unassignedList = mod.getModulesUnAssignedtoToolbar();

    if (unassignedList.size() > 0)
    {
      for (int j = 0; j < unassignedList.size(); j++)
      {
View Full Code Here

  }

  private void populateMenuList() {
    menuModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);
    this.setIconifiable(true);

    menuList = mod.getMenuIds();

    for (int j = 0; j < menuList.size(); j++)
    {
      menuModel.addElement(menuList.get(j));
    }
View Full Code Here

  }

  private void populateUnAssignedList(JDBListData i) {
    unassignedModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);
    mod.setModuleId(i.toString());

    unassignedList = mod.getModulesUnAssignedtoMenu();

    if (unassignedList.size() > 0)
    {
      for (int j = 0; j < unassignedList.size(); j++)
      {
View Full Code Here

  }

  private void populateAssignedList(JDBListData i) {
    assignedModel.removeAllElements();

    JDBModule mod = new JDBModule(Common.selectedHostID, Common.sessionID);
    mod.setModuleId(i.toString());

    assignedList = mod.getModulesAssignedtoMenu();

    if (assignedList.size() > 0)
    {
      for (int j = 0; j < assignedList.size(); j++)
      {
View Full Code Here

    populateList("");
  }

  private void addRecord() {
    JDBModule m = new JDBModule(Common.selectedHostID, Common.sessionID);

    lModuleId = JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Module_Create"));
    if (lModuleId != null)
    {
      if (lModuleId.equals("") == false)
      {
        lModuleId = lModuleId.toUpperCase();
       
        String modType = selectedModuleType;
        if (modType.equals("ALL"))
        {
          modType = "USER";
        }
        if (m.create(lModuleId, "", "Y", "N", modType, "", "") == false)
        {
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(Common.mainForm, m.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE);
        }
        else
        {

          JLaunchMenu.runForm("FRM_ADMIN_MODULE_EDIT", lModuleId);
View Full Code Here

      if (lModuleId.equals("root") == false)
      {
        int n = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Module_Delete")+" " + lModuleId + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
        if (n == 0)
        {
          JDBModule m = new JDBModule(Common.selectedHostID, Common.sessionID);
          m.setModuleId(lModuleId);
          m.delete();
          populateList("");
        }
      }
      else
      {
View Full Code Here

  }

  private void populateList(String defaultitem) {
    DefaultComboBoxModel<JDBListData> defComboBoxMod = new DefaultComboBoxModel<JDBListData>();

    JDBModule tempModule = new JDBModule(Common.selectedHostID, Common.sessionID);

    LinkedList<JDBListData> tempModuleList = new LinkedList<JDBListData>();

    if (jRadioButtonAll.isSelected())
    {
      tempModuleList = tempModule.getModuleIds();
    }
    else
    {
      tempModuleList = tempModule.getModuleIdsByType(selectedModuleType);
    }

    int sel = -1;
    for (int j = 0; j < tempModuleList.size(); j++)
    {
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.