Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.Branche


    if (this.kunBranche.getSelectedCount() > 0) {

      // check if it the default empty item
      Listitem itemB = kunBranche.getSelectedItem();
      Branche branche = (Branche) itemB.getAttribute("data");

      if (!StringUtils.isEmpty(branche.getBraBezeichnung())) {

        // get the search operator
        Listitem item = this.sortOperator_kunBranch.getSelectedItem();

        if (item != null) {
View Full Code Here


   *
   * @param event
   */
  private void doSearchBranchSimple(Event event) {

    final Branche branche = BranchSimpleSearchListBox.show(window_customerDialog);

    if (branche != null) {
      kunBranche.setValue(branche.getBraBezeichnung());
      Customer aCustomer = getCustomer();
      aCustomer.setBranche(branche);
      setCustomer(aCustomer);
    }
  }
View Full Code Here

   *
   * @param event
   */
  private void doSearchBranchAdvanced(Event event) {

    Branche branche = BranchAdvancedSearchListBox.show(window_customerDialog);

    if (branche != null) {
      kunBranche.setValue(branche.getBraBezeichnung());
      Customer aCustomer = getCustomer();
      aCustomer.setBranche(branche);
      setCustomer(aCustomer);
    }
  }
View Full Code Here

   *
   * @param event
   */
  private void doSearchBranchExtended(Event event) {

    Branche branche = BranchExtendedSearchListBox.show(window_customerDialog);

    if (branche != null) {
      kunBranche.setValue(branche.getBraBezeichnung());
      Customer aCustomer = getCustomer();
      aCustomer.setBranche(branche);
      setCustomer(aCustomer);
    }
  }
View Full Code Here

  private final static Logger logger = Logger.getLogger(CustomerBrancheListModelItemRenderer.class);

  @Override
  public void render(Listitem item, Object data) throws Exception {

    final Branche branche = (Branche) data;

    final Listcell lc = new Listcell(branche.getBraBezeichnung());
    lc.setParent(item);

    item.setAttribute("data", data);
    // ComponentsCtrl.applyForward(img, "onClick=onImageClicked");
    // ComponentsCtrl.applyForward(item, "onClick=onClicked");
View Full Code Here

   */
  public void onDoubleClicked(Event event) {

    if (this.listbox.getSelectedItem() != null) {
      Listitem li = this.listbox.getSelectedItem();
      Branche branche = (Branche) li.getAttribute("data");

      setBranche(branche);
      this.onClose();
    }
  }
View Full Code Here

  final class SearchBoxItemRenderer implements ListitemRenderer {

    @Override
    public void render(Listitem item, Object data) throws Exception {

      Branche branche = (Branche) data;

      Listcell lc = new Listcell(branche.getBraBezeichnung());
      lc.setParent(item);

      item.setAttribute("data", data);
      ComponentsCtrl.applyForward(item, "onDoubleClick=onDoubleClicked");
    }
View Full Code Here

    @Override
    public void onEvent(Event event) throws Exception {

      if (BranchAdvancedSearchListBox.this.listbox.getSelectedItem() != null) {
        Listitem li = BranchAdvancedSearchListBox.this.listbox.getSelectedItem();
        Branche branche = (Branche) li.getAttribute("data");

        setBranche(branche);
      }
      onClose();
    }
View Full Code Here

   */
  public void onDoubleClicked(Event event) {

    if (this.listbox.getSelectedItem() != null) {
      Listitem li = this.listbox.getSelectedItem();
      Branche branche = (Branche) li.getAttribute("data");

      setBranche(branche);
      this.onClose();
    }
  }
View Full Code Here

  final class SearchBoxItemRenderer implements ListitemRenderer {

    @Override
    public void render(Listitem item, Object data) throws Exception {

      Branche branche = (Branche) data;

      Listcell lc = new Listcell(branche.getBraBezeichnung());
      lc.setParent(item);

      item.setAttribute("data", data);
      ComponentsCtrl.applyForward(item, "onDoubleClick=onDoubleClicked");
    }
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.Branche

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.