Java 类ims.admin.vo.AppTopButtonSectionVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private boolean canRenameSelectedItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;       
    if(!isItemSelected())
        return false;

    Object value = form.treItems().getSelectedNode().getValue();
    if(value != null)
    {
        if(value instanceof AppTopButtonSectionVo)
            return true;            
        else if(value instanceof AppTopButtonVo)
        {
            return ((AppTopButtonVo)value).getAction() != null && (((AppTopButtonVo)value).getAction().equals(TopButtonAction.URL) || ((AppTopButtonVo)value).getAction().equals(TopButtonAction.FORM));
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void processNodeMove(TreeNode node)
{
    if(node != null)
    {
        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                ((AppTopButtonSectionVo)value).setID_AppTopButtonSection(null);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                ((AppTopButtonVo)value).setID_AppTopButton(null);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean canRenameSelectedItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;       
    if(!isItemSelected())
        return false;

    Object value = form.treItems().getSelectedNode().getValue();
    if(value != null)
    {
        if(value instanceof AppTopButtonSectionVo)
            return true;            
        else if(value instanceof AppTopButtonVo)
        {
            return ((AppTopButtonVo)value).getAction() != null && (((AppTopButtonVo)value).getAction().equals(TopButtonAction.URL) || ((AppTopButtonVo)value).getAction().equals(TopButtonAction.FORM));
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void processNodeMove(TreeNode node)
{
    if(node != null)
    {
        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                ((AppTopButtonSectionVo)value).setID_AppTopButtonSection(null);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                ((AppTopButtonVo)value).setID_AppTopButton(null);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean canRenameSelectedItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;       
    if(!isItemSelected())
        return false;

    Object value = form.treItems().getSelectedNode().getValue();
    if(value != null)
    {
        if(value instanceof AppTopButtonSectionVo)
            return true;            
        else if(value instanceof AppTopButtonVo)
        {
            return ((AppTopButtonVo)value).getAction() != null && (((AppTopButtonVo)value).getAction().equals(TopButtonAction.URL) || ((AppTopButtonVo)value).getAction().equals(TopButtonAction.FORM));
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void processNodeMove(TreeNode node)
{
    if(node != null)
    {
        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                ((AppTopButtonSectionVo)value).setID_AppTopButtonSection(null);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                ((AppTopButtonVo)value).setID_AppTopButton(null);
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean canRenameSelectedItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;       
    if(!isItemSelected())
        return false;

    Object value = form.treItems().getSelectedNode().getValue();
    if(value != null)
    {
        if(value instanceof AppTopButtonSectionVo)
            return true;            
        else if(value instanceof AppTopButtonVo)
        {
            return ((AppTopButtonVo)value).getAction() != null && (((AppTopButtonVo)value).getAction().equals(TopButtonAction.URL) || ((AppTopButtonVo)value).getAction().equals(TopButtonAction.FORM));
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void processNodeMove(TreeNode node)
{
    if(node != null)
    {
        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                ((AppTopButtonSectionVo)value).setID_AppTopButtonSection(null);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                ((AppTopButtonVo)value).setID_AppTopButton(null);
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addSection()
{       
    AppTopButtonSectionVo value = new AppTopButtonSectionVo();
    value.setText("Untitled");

    addSection(getSectionsNode(), value, true);

    updateContextMenuState();
    renameSelectedItem();
}
项目:AvoinApotti    文件:Logic.java   
private void addSection(TreeNode parentNode, AppTopButtonSectionVo value, boolean autoSelect) 
{
    if(parentNode != null && value != null)
    {
        String text = value.getText();
        if(text == null)
            text = " ";
        TreeNode node = parentNode.getNodes().add(value, text, autoSelect, SECTION_DRAGDROP_TYPE, new int[] { SECTIONS_DRAGDROP_TYPE }, true);

        node.setSelectedImage(form.getImages().Core.Organizer);
        node.setCollapsedImage(form.getImages().Core.Organizer);
        node.setExpandedImage(form.getImages().Core.Organizer);

        if(value.getButtons() != null)
        {
            AppTopButtonVoCollection buttons = value.getButtons();
            if(buttons != null)
            {
                for(int x = 0; x < buttons.size(); x++)
                {
                    AppTopButtonVo button = buttons.get(x);                     
                    if(button != null)
                    {
                        addButton(node, button, autoSelect);
                    }
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean canAddButtonItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;
    if(form.treItems().getValue() == null)
        return false;       
    if(form.treItems().getValue() instanceof AppTopButtonSectionVo)
        return true;
    if(form.treItems().getValue().equals(BUTTONS_NODE_TAG))
        return MAX_NO_BUTTONS > getNoOfButtons();       
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void processNodeRename(TreeNode node)
{
    if(node != null)
    {
        String nodeText = node.getText();

        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                    nodeText = " ";
                ((AppTopButtonSectionVo)value).setText(nodeText);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                {
                    nodeText = "Untitled";
                    node.setText(nodeText);                     
                }

                ((AppTopButtonVo)value).setText(nodeText);                  
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addSection()
{       
    AppTopButtonSectionVo value = new AppTopButtonSectionVo();
    value.setText("Untitled");

    addSection(getSectionsNode(), value, true);

    updateContextMenuState();
    renameSelectedItem();
}
项目:openMAXIMS    文件:Logic.java   
private void addSection(TreeNode parentNode, AppTopButtonSectionVo value, boolean autoSelect) 
{
    if(parentNode != null && value != null)
    {
        String text = value.getText();
        if(text == null)
            text = " ";
        TreeNode node = parentNode.getNodes().add(value, text, autoSelect, SECTION_DRAGDROP_TYPE, new int[] { SECTIONS_DRAGDROP_TYPE }, true);

        node.setSelectedImage(form.getImages().Core.Organizer);
        node.setCollapsedImage(form.getImages().Core.Organizer);
        node.setExpandedImage(form.getImages().Core.Organizer);

        if(value.getButtons() != null)
        {
            AppTopButtonVoCollection buttons = value.getButtons();
            if(buttons != null)
            {
                for(int x = 0; x < buttons.size(); x++)
                {
                    AppTopButtonVo button = buttons.get(x);                     
                    if(button != null)
                    {
                        addButton(node, button, autoSelect);
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean canAddButtonItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;
    if(form.treItems().getValue() == null)
        return false;       
    if(form.treItems().getValue() instanceof AppTopButtonSectionVo)
        return true;
    if(form.treItems().getValue().equals(BUTTONS_NODE_TAG))
        return MAX_NO_BUTTONS > getNoOfButtons();       
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void processNodeRename(TreeNode node)
{
    if(node != null)
    {
        String nodeText = node.getText();

        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                    nodeText = " ";
                ((AppTopButtonSectionVo)value).setText(nodeText);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                {
                    nodeText = "Untitled";
                    node.setText(nodeText);                     
                }

                ((AppTopButtonVo)value).setText(nodeText);                  
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addSection()
{       
    AppTopButtonSectionVo value = new AppTopButtonSectionVo();
    value.setText("Untitled");

    addSection(getSectionsNode(), value, true);

    updateContextMenuState();
    renameSelectedItem();
}
项目:openMAXIMS    文件:Logic.java   
private void addSection(TreeNode parentNode, AppTopButtonSectionVo value, boolean autoSelect) 
{
    if(parentNode != null && value != null)
    {
        String text = value.getText();
        if(text == null)
            text = " ";
        TreeNode node = parentNode.getNodes().add(value, text, autoSelect, SECTION_DRAGDROP_TYPE, new int[] { SECTIONS_DRAGDROP_TYPE }, true);

        node.setSelectedImage(form.getImages().Core.Organizer);
        node.setCollapsedImage(form.getImages().Core.Organizer);
        node.setExpandedImage(form.getImages().Core.Organizer);

        if(value.getButtons() != null)
        {
            AppTopButtonVoCollection buttons = value.getButtons();
            if(buttons != null)
            {
                for(int x = 0; x < buttons.size(); x++)
                {
                    AppTopButtonVo button = buttons.get(x);                     
                    if(button != null)
                    {
                        addButton(node, button, autoSelect);
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean canAddButtonItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;
    if(form.treItems().getValue() == null)
        return false;       
    if(form.treItems().getValue() instanceof AppTopButtonSectionVo)
        return true;
    if(form.treItems().getValue().equals(BUTTONS_NODE_TAG))
        return MAX_NO_BUTTONS > getNoOfButtons();       
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void processNodeRename(TreeNode node)
{
    if(node != null)
    {
        String nodeText = node.getText();

        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                    nodeText = " ";
                ((AppTopButtonSectionVo)value).setText(nodeText);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                {
                    nodeText = "Untitled";
                    node.setText(nodeText);                     
                }

                ((AppTopButtonVo)value).setText(nodeText);                  
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addSection()
{       
    AppTopButtonSectionVo value = new AppTopButtonSectionVo();
    value.setText("Untitled");

    addSection(getSectionsNode(), value, true);

    updateContextMenuState();
    renameSelectedItem();
}
项目:openmaxims-linux    文件:Logic.java   
private void addSection(TreeNode parentNode, AppTopButtonSectionVo value, boolean autoSelect) 
{
    if(parentNode != null && value != null)
    {
        String text = value.getText();
        if(text == null)
            text = " ";
        TreeNode node = parentNode.getNodes().add(value, text, autoSelect, SECTION_DRAGDROP_TYPE, new int[] { SECTIONS_DRAGDROP_TYPE }, true);

        node.setSelectedImage(form.getImages().Core.Organizer);
        node.setCollapsedImage(form.getImages().Core.Organizer);
        node.setExpandedImage(form.getImages().Core.Organizer);

        if(value.getButtons() != null)
        {
            AppTopButtonVoCollection buttons = value.getButtons();
            if(buttons != null)
            {
                for(int x = 0; x < buttons.size(); x++)
                {
                    AppTopButtonVo button = buttons.get(x);                     
                    if(button != null)
                    {
                        addButton(node, button, autoSelect);
                    }
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean canAddButtonItem()
{
    if(form.getMode() == FormMode.VIEW)
        return false;
    if(form.treItems().getValue() == null)
        return false;       
    if(form.treItems().getValue() instanceof AppTopButtonSectionVo)
        return true;
    if(form.treItems().getValue().equals(BUTTONS_NODE_TAG))
        return MAX_NO_BUTTONS > getNoOfButtons();       
    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void processNodeRename(TreeNode node)
{
    if(node != null)
    {
        String nodeText = node.getText();

        Object value = node.getValue();
        if(value != null)
        {
            if(value instanceof AppTopButtonSectionVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                    nodeText = " ";
                ((AppTopButtonSectionVo)value).setText(nodeText);
            }               
            else if(value instanceof AppTopButtonVo)
            {
                if(nodeText == null || nodeText.length() == 0)
                {
                    nodeText = "Untitled";
                    node.setText(nodeText);                     
                }

                ((AppTopButtonVo)value).setText(nodeText);                  
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
public void populateInstanceControls() 
{
    clearInstanceControls();

    AppTopButtonConfigVo configuration = form.grdList().getValue();
    form.getLocalContext().setRecord(configuration);        

    if(configuration != null)
    {           
        form.txtName().setValue(configuration.getName());
        form.intNoColumns().setValue(configuration.getNoColumns());
        form.chkIncludePatientSelectionHistory().setValue(configuration.getIncludePatientHistory());

        addDefaultItemNodes();

        AppTopButtonVoCollection buttons = configuration.getButtons();
        if(buttons != null)
        {
            for(int x = 0; x < buttons.size(); x++)
            {
                AppTopButtonVo button = buttons.get(x);                 
                if(button != null)
                {
                    addButton(getButtonsNode(), button, false);                     
                }
            }
        }

        AppTopButtonSectionVoCollection sections = configuration.getSections();
        if(sections != null)
        {
            for(int x = 0; x < sections.size(); x++)
            {
                AppTopButtonSectionVo section = sections.get(x);                    
                if(section != null)
                {
                    addSection(getSectionsNode(), section, false);                      
                }
            }               
        }
    }

    form.treItems().expandAll();

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
public void populateInstanceControls() 
{
    clearInstanceControls();

    AppTopButtonConfigVo configuration = form.grdList().getValue();
    form.getLocalContext().setRecord(configuration);        

    if(configuration != null)
    {           
        form.txtName().setValue(configuration.getName());
        form.intNoColumns().setValue(configuration.getNoColumns());
        form.chkIncludePatientSelectionHistory().setValue(configuration.getIncludePatientHistory());

        addDefaultItemNodes();

        AppTopButtonVoCollection buttons = configuration.getButtons();
        if(buttons != null)
        {
            for(int x = 0; x < buttons.size(); x++)
            {
                AppTopButtonVo button = buttons.get(x);                 
                if(button != null)
                {
                    addButton(getButtonsNode(), button, false);                     
                }
            }
        }

        AppTopButtonSectionVoCollection sections = configuration.getSections();
        if(sections != null)
        {
            for(int x = 0; x < sections.size(); x++)
            {
                AppTopButtonSectionVo section = sections.get(x);                    
                if(section != null)
                {
                    addSection(getSectionsNode(), section, false);                      
                }
            }               
        }
    }

    form.treItems().expandAll();

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
public void populateInstanceControls() 
{
    clearInstanceControls();

    AppTopButtonConfigVo configuration = form.grdList().getValue();
    form.getLocalContext().setRecord(configuration);        

    if(configuration != null)
    {           
        form.txtName().setValue(configuration.getName());
        form.intNoColumns().setValue(configuration.getNoColumns());
        form.chkIncludePatientSelectionHistory().setValue(configuration.getIncludePatientHistory());

        addDefaultItemNodes();

        AppTopButtonVoCollection buttons = configuration.getButtons();
        if(buttons != null)
        {
            for(int x = 0; x < buttons.size(); x++)
            {
                AppTopButtonVo button = buttons.get(x);                 
                if(button != null)
                {
                    addButton(getButtonsNode(), button, false);                     
                }
            }
        }

        AppTopButtonSectionVoCollection sections = configuration.getSections();
        if(sections != null)
        {
            for(int x = 0; x < sections.size(); x++)
            {
                AppTopButtonSectionVo section = sections.get(x);                    
                if(section != null)
                {
                    addSection(getSectionsNode(), section, false);                      
                }
            }               
        }
    }

    form.treItems().expandAll();

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
public void populateInstanceControls() 
{
    clearInstanceControls();

    AppTopButtonConfigVo configuration = form.grdList().getValue();
    form.getLocalContext().setRecord(configuration);        

    if(configuration != null)
    {           
        form.txtName().setValue(configuration.getName());
        form.intNoColumns().setValue(configuration.getNoColumns());
        form.chkIncludePatientSelectionHistory().setValue(configuration.getIncludePatientHistory());

        addDefaultItemNodes();

        AppTopButtonVoCollection buttons = configuration.getButtons();
        if(buttons != null)
        {
            for(int x = 0; x < buttons.size(); x++)
            {
                AppTopButtonVo button = buttons.get(x);                 
                if(button != null)
                {
                    addButton(getButtonsNode(), button, false);                     
                }
            }
        }

        AppTopButtonSectionVoCollection sections = configuration.getSections();
        if(sections != null)
        {
            for(int x = 0; x < sections.size(); x++)
            {
                AppTopButtonSectionVo section = sections.get(x);                    
                if(section != null)
                {
                    addSection(getSectionsNode(), section, false);                      
                }
            }               
        }
    }

    form.treItems().expandAll();

    updateControlsState();
}