Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.ComboBoxAdapter


    /**
     * Lager komboboks med initialer
     * @return komboboks
     */
    public JComboBox getComboBoxInitials2() {
        return new JComboBox(new ComboBoxAdapter(packInitials,
                presentationModel.getModel(Initials.PROPERTY_INITIALS_2)));
    }
View Full Code Here


    /**
     * Lager komboboks med initialer
     * @return komboboks
     */
    public JComboBox getComboBoxInitials3() {
        return new JComboBox(new ComboBoxAdapter(packInitials,
                presentationModel.getModel(Initials.PROPERTY_INITIALS_3)));
    }
View Full Code Here

    attributeChoiceOverviewView.enableComponents(enable);
  }

  public JComboBox getComboBoxDataType(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            AttributeDataType.getStringValues(),
            presentationModel
                .getBufferedModel(AttributeModel.PROPERTY_ATTRIBUTE_DATA_TYPE)));
    comboBox.setName("ComboBoxDataType");
    return comboBox;
View Full Code Here

     * Lager komboboks for leder
     * @param presentationModel
     * @return komboboks
     */
    public JComboBox getComboBoxManager(PresentationModel presentationModel) {
        JComboBox comboBox = new JComboBox(new ComboBoxAdapter(
                getApplicationUserList(), presentationModel
                        .getBufferedModel(JobFunctionModel.PROPERTY_MANAGER)));
        comboBox.setEnabled(hasWriteAccess());
        return comboBox;
    }
View Full Code Here

  public JComboBox getComboBoxStatus(PresentationModel presentationModel) {
    initDeviationStatusList();
    DeviationStatus status = (DeviationStatus) presentationModel
        .getBufferedValue(AccidentModel.PROPERTY_DEVIATION_STATUS);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            deviationStatusList,
            presentationModel
                .getBufferedModel(AccidentModel.PROPERTY_DEVIATION_STATUS)));
      comboBox.setEnabled(hasWriteAccess());
    comboBox.setName("ComboBoxStatus");
View Full Code Here

   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxFunction(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            functionList,
            presentationModel
                .getBufferedModel(PreventiveActionModel.PROPERTY_JOB_FUNCTION)));
    comboBox.setName("ComboBoxFunction");
    comboBox.addItemListener(new FunctionItemListener(presentationModel));
View Full Code Here

   * @return komboboks
   */
  public JComboBox getComboBoxCategory(PresentationModel presentationModel) {
    setCategoryList(presentationModel);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) categoryList,
            presentationModel
                .getBufferedModel(PreventiveActionModel.PROPERTY_FUNCTION_CATEGORY)));
    comboBox.setName("ComboBoxCategory");
    return comboBox;
View Full Code Here

   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxWeek(PresentationModel presentationModel) {
    return new JComboBox(
        new ComboBoxAdapter(
            Util.getWeeks(),
            presentationModel
                .getBufferedModel(ProductionBudgetModel.PROPERTY_BUDGET_WEEK)));

  }
View Full Code Here

   * @param presentationModel
   * @return kombobkos
   */
  public JComboBox getComboBoxProductArea(PresentationModel presentationModel) {
    return new JComboBox(
        new ComboBoxAdapter(
            productAreaList,
            presentationModel
                .getBufferedModel(ProductionBudgetModel.PROPERTY_PRODUCT_AREA)));

  }
View Full Code Here

        return yearChooser;

    }

    public JComboBox getComboBoxWeek(PresentationModel presentationModel) {
        JComboBox comboBox = new JComboBox(new ComboBoxAdapter(Util.getWeeks(),
                presentationModel
                        .getModel(ProcentDoneModel.PROPERTY_PROCENT_DONE_WEEK)));
        comboBox.setName("ComboBoxWeek");
        comboBox.setSelectedItem(Util.getCurrentWeek());
        return comboBox;
View Full Code Here

TOP

Related Classes of com.jgoodies.binding.adapter.ComboBoxAdapter

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.