Java Code Examples for ims.ocrr.vo.lookups.TemplateDividerType

The following are top voted examples for showing how to use ims.ocrr.vo.lookups.TemplateDividerType. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
void setSeparatorControlProperties()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
	boolean editable = updateable && form.getMode() == FormMode.EDIT;
		
	form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);
	
	if(updateable)
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
	}		
	else
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
	}
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
void setSeparatorControlProperties()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
	boolean editable = updateable && form.getMode() == FormMode.EDIT;
		
	form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);
	
	if(updateable)
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
	}		
	else
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
	}
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
void setSeparatorControlProperties()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
	boolean editable = updateable && form.getMode() == FormMode.EDIT;
		
	form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);
	
	if(updateable)
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
	}		
	else
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
	}
}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
void setSeparatorControlProperties()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	boolean updateable = component != null && component.getDivider() != null && component.getDivider().equals(TemplateDividerType.SEPARATOR);
	boolean editable = updateable && form.getMode() == FormMode.EDIT;
		
	form.lyrDetails().tabComponents().txtTextSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().cmbColorSeparator().setEnabled(editable);
	form.lyrDetails().tabComponents().chkSeparatorIsBold().setEnabled(editable);
	
	if(updateable)
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(component.getDividerText());
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(component.getDividerColour());
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(component.getDividerIsBold() == null ? false : component.getDividerIsBold().booleanValue());
	}		
	else
	{
		form.lyrDetails().tabComponents().txtTextSeparator().setValue(null);
		form.lyrDetails().tabComponents().cmbColorSeparator().setValue(null);
		form.lyrDetails().tabComponents().chkSeparatorIsBold().setValue(false);
	}
}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addColumnSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
	addComponent(component, true);
	processComponentColumns();
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeSelectedComponent()
{		
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
		if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			removeCorrectColumnName();
		form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
		processComponentColumns();
	}
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private int countColumnSeparators()
{
	int count = 0;
	for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
	{
		GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
		OrderEntryTemplateComponentShortVo component = row.getValue();
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			count++;
	}
	return count + 1;
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeCorrectColumnName()
{
	int colNameIndex = 0;
	OrderEntryTemplateComponentShortVo component = null;
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		component = form.lyrDetails().tabComponents().grdComponents().getValue();			
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
		{
			for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
			{
				OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
				if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
				{
					if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
					{
						form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
						return;
					}
					else
					{
						colNameIndex++;
					}
				}
			}
		}
	}
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
void updateSeparatorComponentData()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
	{
		component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
		component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
		component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
	}
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addColumnSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
	addComponent(component, true);
	processComponentColumns();
}
 
Example 11
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeSelectedComponent()
{		
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
		if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			removeCorrectColumnName();
		form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
		processComponentColumns();
	}
}
 
Example 12
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private int countColumnSeparators()
{
	int count = 0;
	for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
	{
		GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
		OrderEntryTemplateComponentShortVo component = row.getValue();
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			count++;
	}
	return count + 1;
}
 
Example 13
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeCorrectColumnName()
{
	int colNameIndex = 0;
	OrderEntryTemplateComponentShortVo component = null;
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		component = form.lyrDetails().tabComponents().grdComponents().getValue();			
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
		{
			for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
			{
				OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
				if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
				{
					if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
					{
						form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
						return;
					}
					else
					{
						colNameIndex++;
					}
				}
			}
		}
	}
}
 
Example 14
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
void updateSeparatorComponentData()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
	{
		component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
		component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
		component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
	}
}
 
Example 15
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addColumnSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
	addComponent(component, true);
	processComponentColumns();
}
 
Example 16
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeSelectedComponent()
{		
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
		if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			removeCorrectColumnName();
		form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
		processComponentColumns();
	}
}
 
Example 17
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private int countColumnSeparators()
{
	int count = 0;
	for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
	{
		GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
		OrderEntryTemplateComponentShortVo component = row.getValue();
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			count++;
	}
	return count + 1;
}
 
Example 18
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeCorrectColumnName()
{
	int colNameIndex = 0;
	OrderEntryTemplateComponentShortVo component = null;
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		component = form.lyrDetails().tabComponents().grdComponents().getValue();			
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
		{
			for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
			{
				OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
				if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
				{
					if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
					{
						form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
						return;
					}
					else
					{
						colNameIndex++;
					}
				}
			}
		}
	}
}
 
Example 19
Project: openMAXIMS   File: Logic.java   Source Code and License 5 votes vote down vote up
void updateSeparatorComponentData()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
	{
		component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
		component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
		component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
	}
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void addColumnSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.COLUMNSEPARATOR);
	addComponent(component, true);
	processComponentColumns();
}
 
Example 21
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeSelectedComponent()
{		
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
		if(component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			removeCorrectColumnName();
		form.lyrDetails().tabComponents().grdComponents().removeSelectedRow();
		processComponentColumns();
	}
}
 
Example 22
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private int countColumnSeparators()
{
	int count = 0;
	for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
	{
		GenForm.lyrDetailsLayer.tabComponentsContainer.grdComponentsRow row = form.lyrDetails().tabComponents().grdComponents().getRows().get(x);
		OrderEntryTemplateComponentShortVo component = row.getValue();
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
			count++;
	}
	return count + 1;
}
 
Example 23
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
private void removeCorrectColumnName()
{
	int colNameIndex = 0;
	OrderEntryTemplateComponentShortVo component = null;
	if(form.lyrDetails().tabComponents().grdComponents().getValue() != null)
	{
		component = form.lyrDetails().tabComponents().grdComponents().getValue();			
		if(component != null && component.getDividerIsNotNull() && component.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
		{
			for(int x = 0; x < form.lyrDetails().tabComponents().grdComponents().getRows().size(); x++)
			{
				OrderEntryTemplateComponentShortVo item = form.lyrDetails().tabComponents().grdComponents().getRows().get(x).getValue();
				if(item != null && item.getDividerIsNotNull() && item.getDivider().equals(TemplateDividerType.COLUMNSEPARATOR))
				{
					if(item.equals(component) && form.lyrDetails().tabComponents().grdColumnNames().getRows().size() - 1 >= colNameIndex + 1)
					{
						form.lyrDetails().tabComponents().grdColumnNames().getRows().remove(colNameIndex + 1);
						return;
					}
					else
					{
						colNameIndex++;
					}
				}
			}
		}
	}
}
 
Example 24
Project: openmaxims-linux   File: Logic.java   Source Code and License 5 votes vote down vote up
void updateSeparatorComponentData()
{
	OrderEntryTemplateComponentShortVo component = form.lyrDetails().tabComponents().grdComponents().getValue();
	
	if(component != null && component.getDivider().equals(TemplateDividerType.SEPARATOR))
	{
		component.setDividerColour(form.lyrDetails().tabComponents().cmbColorSeparator().getValue());
		component.setDividerText(form.lyrDetails().tabComponents().txtTextSeparator().getValue());
		component.setDividerIsBold(new Boolean(form.lyrDetails().tabComponents().chkSeparatorIsBold().getValue()));
	}
}
 
Example 25
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private void addSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.SEPARATOR);
	addComponent(component, true);
}
 
Example 26
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private void addSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.SEPARATOR);
	addComponent(component, true);
}
 
Example 27
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
private void addSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.SEPARATOR);
	addComponent(component, true);
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
private void addSeparator()
{		
	OrderEntryTemplateComponentShortVo component = new OrderEntryTemplateComponentShortVo();
	component.setDivider(TemplateDividerType.SEPARATOR);
	addComponent(component, true);
}