Package com.zycus.dotproject.ui.component.datepicker

Examples of com.zycus.dotproject.ui.component.datepicker.CalendarADC


    private JPanel        editorPanel      = null;
    private JTextField      txtFreeValue    = null;

    public BaseReportTableEditor() {
      singleCombo = new JComboBox();
      dateCombo = new CalendarADC();
      dateCombo.setDate(new Date());
      multiCombo = new MultiSelectCombo();
      editorPanel = new JPanel(new BorderLayout());
      txtFreeValue = new JTextField();
    }
View Full Code Here


    init();
    initLayout();
  }

  private void init() {
    projectStartDate = new CalendarADC();
    projectStartDate.setFormat(ApplicationContext.getUserPreferences().getDateDisplayFormat());

    fileTableMouseAdapter = new FileTableMouseAdapter();

    fileActions = new FileActions();

    taskFilesPopupMenu = new JPopupMenu();
    taskFilesPopupMenu.add(addFileMenu = MenuUtility.getMenuItem("Add new file", fileActions));
    addFileMenu.setIcon(IconHelper.getNewIcon());
    // taskFilesPopupMenu.add(editFileMenu = MenuUtility.getMenuItem("Edit",
    // fileActions));
    taskFilesPopupMenu.add(viewFileMenu = MenuUtility.getMenuItem("Download", fileActions));
    taskFilesPopupMenu.add(checkOutMenu = MenuUtility.getMenuItem("CheckOut", fileActions));
    taskFilesPopupMenu.add(checkInMenu = MenuUtility.getMenuItem("CheckIn", fileActions));
    taskFilesPopupMenu.add(versionsFileMenu = MenuUtility.getMenuItem("Show all versions", fileActions));
    taskFilesPopupMenu.add(deleteFileMenu = MenuUtility.getMenuItem("Delete", fileActions));
    deleteFileMenu.setIcon(IconHelper.getDeleteIcon());
    viewFileMenu.setIcon(IconHelper.getDownloadIcon());
    checkOutMenu.setIcon(IconHelper.getCheckOutIcon());
    checkInMenu.setIcon(IconHelper.getCheckInIcon());
    addFileMenu.setIcon(IconHelper.getAddNewFileIcon());
    // editFileMenu.setIcon(IconHelper.getEditIcon());
    versionsFileMenu.setIcon(IconHelper.getViewAllIcon());

    fileManager = FileManagerFactory.getFileManager();
    fileTableModel = new FileTableModel(new ArrayList<BOFile>());
    projectFiles = new JTable(fileTableModel);
    projectFiles.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    FileTableRenderer renderer = new FileTableRenderer();
    projectFiles.setDefaultRenderer(String.class, renderer);
    projectFiles.addMouseListener(fileTableMouseAdapter);

    projectFiles.getColumnModel().getColumn(0).setMaxWidth(10);
    projectFiles.getColumnModel().getColumn(0).setPreferredWidth(10);
    projectFiles.getColumnModel().getColumn(0).setResizable(false);

    buttonBar = new ButtonBar(ButtonBar.ADD | ButtonBar.SAVE | ButtonBar.DELETE | ButtonBar.CANCEL);

    buttonBar.enableButton(ButtonBar.SAVE, false);
    buttonBar.enableButton(ButtonBar.DELETE, false);

    buttonBar.addButtonBarListener(this);
    projectManager = ProjectManagerFactory.getProjectManager();
    Object[] projectsForSorting = projectManager.getAllProjects(null, ApplicationContext.getCurrentUser()).toArray();
    Arrays.sort(projectsForSorting);

    lstProjects = new JList(projectsForSorting);
    lstProjects.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    projectName = new JTextField();
    projectDescription = new JTextArea(2, 5);
    BOUser[] users = UserManagerFactory.getUserManager().getAllUsers().toArray(new BOUser[] {});
    Arrays.sort(users);

    projectOwner = new JComboBox(users);

    projectEndDate = new CalendarADC();
    projectEndDate.setFormat(ApplicationContext.getUserPreferences().getDateDisplayFormat());
    //projectEndDate.setSelectable(true);
   
    projectType = new JComboBox(ProjectType.values());
View Full Code Here

    init();
    initLayout();
  }

  private void init() {
    projectStartDate = new CalendarADC();
    projectStartDate.setFormat(ApplicationContext.getUserPreferences().getDateDisplayFormat());

    fileTableMouseAdapter = new FileTableMouseAdapter();

    fileActions = new FileActions();

    taskFilesPopupMenu = new JPopupMenu();
    taskFilesPopupMenu.add(addFileMenu = MenuUtility.getMenuItem("Add new file", fileActions));
    addFileMenu.setIcon(IconHelper.getNewIcon());
    // taskFilesPopupMenu.add(editFileMenu = MenuUtility.getMenuItem("Edit",
    // fileActions));
    taskFilesPopupMenu.add(viewFileMenu = MenuUtility.getMenuItem("Download", fileActions));
    taskFilesPopupMenu.add(checkOutMenu = MenuUtility.getMenuItem("CheckOut", fileActions));
    taskFilesPopupMenu.add(checkInMenu = MenuUtility.getMenuItem("CheckIn", fileActions));
    taskFilesPopupMenu.add(versionsFileMenu = MenuUtility.getMenuItem("Show all versions", fileActions));
    taskFilesPopupMenu.add(deleteFileMenu = MenuUtility.getMenuItem("Delete", fileActions));
    deleteFileMenu.setIcon(IconHelper.getDeleteIcon());
    viewFileMenu.setIcon(IconHelper.getDownloadIcon());
    checkOutMenu.setIcon(IconHelper.getCheckOutIcon());
    checkInMenu.setIcon(IconHelper.getCheckInIcon());
    addFileMenu.setIcon(IconHelper.getAddNewFileIcon());
    // editFileMenu.setIcon(IconHelper.getEditIcon());
    versionsFileMenu.setIcon(IconHelper.getViewAllIcon());

    fileManager = FileManagerFactory.getFileManager();
    fileTableModel = new FileTableModel(new ArrayList<BOFile>());
    projectFiles = new JTable(fileTableModel);
    projectFiles.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    FileTableRenderer renderer = new FileTableRenderer();
    projectFiles.setDefaultRenderer(String.class, renderer);
    projectFiles.addMouseListener(fileTableMouseAdapter);

    projectFiles.getColumnModel().getColumn(0).setMaxWidth(10);
    projectFiles.getColumnModel().getColumn(0).setPreferredWidth(10);
    projectFiles.getColumnModel().getColumn(0).setResizable(false);

    buttonBar = new ButtonBar(ButtonBar.ADD | ButtonBar.SAVE | ButtonBar.DELETE | ButtonBar.CANCEL);

    buttonBar.enableButton(ButtonBar.SAVE, false);
    buttonBar.enableButton(ButtonBar.DELETE, false);

    buttonBar.addButtonBarListener(this);
    projectManager = ProjectManagerFactory.getProjectManager();
    Object[] projectsForSorting = projectManager.getAllProjects(null, ApplicationContext.getCurrentUser()).toArray();
    Arrays.sort(projectsForSorting);

    lstProjects = new JList(projectsForSorting);
    lstProjects.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    projectName = new JTextField();
    projectDescription = new JTextArea(2, 5);
    BOUser[] users = UserManagerFactory.getUserManager().getAllUsers().toArray(new BOUser[] {});
    Arrays.sort(users);

    projectOwner = new JComboBox(users);

    projectEndDate = new CalendarADC();
    projectEndDate.setFormat(ApplicationContext.getUserPreferences().getDateDisplayFormat());
    //projectEndDate.setSelectable(true);
   
    projectType = new JComboBox(ProjectType.values());
View Full Code Here

    private DateEditor(ProjectTaskArea pta) {
      this.pta = pta;
      dateText = new JTextField();
      dateCombo = new DateComboBox();
      dateCombo.setEditable(true);
      dateComboADC = new CalendarADC();
    }
View Full Code Here

    logName = new JTextField();
    logDuration = new JTextField();
    taskPercentage = new JTextField();
    logDuration.setHorizontalAlignment(JTextField.RIGHT);
    logDescription = new JTextArea(2, 10);
    logDate = new CalendarADC();
    logDate.setDate(new Date());
    creator = new JComboBox(UserManagerFactory.getUserManager().getAllUsers().toArray());
    creator.setSelectedItem(ApplicationContext.getCurrentUser());
    if (log == null) {
      btnBar = new ButtonBar(ButtonBar.SAVE | ButtonBar.CANCEL);
View Full Code Here

TOP

Related Classes of com.zycus.dotproject.ui.component.datepicker.CalendarADC

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.