本文整理汇总了Java中com.openbravo.data.user.DirtyManager类的典型用法代码示例。如果您正苦于以下问题:Java DirtyManager类的具体用法?Java DirtyManager怎么用?Java DirtyManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DirtyManager类属于com.openbravo.data.user包,在下文中一共展示了DirtyManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: JLabelDirty
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates a new instance of JDirtyPicture */
public JLabelDirty(DirtyManager dm) {
if (m_IconModif == null) {
m_IconModif = new ImageIcon(getClass().getResource("/com/openbravo/images/edit.png"));
}
if (m_IconNull == null) {
m_IconNull = new NullIcon(16, 16);
}
dm.addDirtyListener(new DirtyListener() {
public void changedDirty(boolean bDirty) {
setIcon(bDirty ? m_IconModif : m_IconNull);
}
});
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:JLabelDirty.java
示例2: ResourcesView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form ResourcesEditor */
public ResourcesView(DirtyManager dirty) {
initComponents();
m_ResourceModel = new ComboBoxValModel();
m_ResourceModel.add(ResourceType.TEXT);
m_ResourceModel.add(ResourceType.IMAGE);
m_ResourceModel.add(ResourceType.BINARY);
m_jType.setModel(m_ResourceModel);
m_jName.getDocument().addDocumentListener(dirty);
m_jType.addActionListener(dirty);
m_jText.getDocument().addDocumentListener(dirty);
m_jImage.addPropertyChangeListener("image", dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:ResourcesView.java
示例3: AttributeUseEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form AttributeSetEditor */
public AttributeUseEditor(AppView app, DirtyManager dirty) {
attributesent = new StaticSentence(app.getSession()
, "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
, null
, new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
return new AttributeInfo(dr.getString(1), dr.getString(2));
}}
);
attributemodel = new ComboBoxValModel();
initComponents();
jLineno.getDocument().addDocumentListener(dirty);
jAttribute.addActionListener(dirty);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:AttributeUseEditor.java
示例4: CategoriesEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form JPanelCategories */
public CategoriesEditor(AppView app, DirtyManager dirty) {
DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
initComponents();
// El modelo de categorias
m_sentcat = dlSales.getCategoriesList();
m_CategoryModel = new ComboBoxValModel();
m_sentadd = dlSales.getCatalogCategoryAdd();
m_sentdel = dlSales.getCatalogCategoryDel();
m_jName.getDocument().addDocumentListener(dirty);
m_jCategory.addActionListener(dirty);
m_jImage.addPropertyChangeListener("image", dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:CategoriesEditor.java
示例5: ThirdPartiesView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form ThirdPartiesView */
public ThirdPartiesView(AppView app, DirtyManager dirty) {
initComponents();
m_jCIF.getDocument().addDocumentListener(dirty);
m_jName.getDocument().addDocumentListener(dirty);
m_jAddress.getDocument().addDocumentListener(dirty);
m_jContactComm.getDocument().addDocumentListener(dirty);
m_jContactFact.getDocument().addDocumentListener(dirty);
m_jPayRule.getDocument().addDocumentListener(dirty);
m_jFaxNumber.getDocument().addDocumentListener(dirty);
m_jPhoneNumber.getDocument().addDocumentListener(dirty);
m_jMobileNumber.getDocument().addDocumentListener(dirty);
m_jEMail.getDocument().addDocumentListener(dirty);
m_jWebPage.getDocument().addDocumentListener(dirty);
m_jNotes.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:ThirdPartiesView.java
示例6: JLabelDirty
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates a new instance of JDirtyPicture
* @param dm */
public JLabelDirty(DirtyManager dm) {
if (m_IconModif == null) {
m_IconModif = new ImageIcon(getClass().getResource("/com/openbravo/images/edit.png"));
}
if (m_IconNull == null) {
m_IconNull = new NullIcon(16, 16);
}
dm.addDirtyListener(new DirtyListener() {
public void changedDirty(boolean bDirty) {
setIcon(bDirty ? m_IconModif : m_IconNull);
}
});
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:JLabelDirty.java
示例7: ResourcesView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form ResourcesEditor
* @param dirty */
public ResourcesView(DirtyManager dirty) {
initComponents();
m_ResourceModel = new ComboBoxValModel();
m_ResourceModel.add(ResourceType.TEXT);
m_ResourceModel.add(ResourceType.IMAGE);
m_ResourceModel.add(ResourceType.BINARY);
m_jType.setModel(m_ResourceModel);
m_jName.getDocument().addDocumentListener(dirty);
m_jType.addActionListener(dirty);
m_jText.getDocument().addDocumentListener(dirty);
m_jImage.addPropertyChangeListener("image", dirty);
writeValueEOF();
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:19,代码来源:ResourcesView.java
示例8: PaymentsEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form JPanelPayments
* @param oApp
* @param dirty */
public PaymentsEditor(AppView oApp, DirtyManager dirty) {
m_App = oApp;
initComponents();
m_ReasonModel = new ComboBoxValModel();
m_ReasonModel.add(new PaymentReasonPositive("cashin", AppLocal.getIntString("transpayment.cashin")));
m_ReasonModel.add(new PaymentReasonNegative("cashout", AppLocal.getIntString("transpayment.cashout")));
m_jreason.setModel(m_ReasonModel);
jTotal.addEditorKeys(m_jKeys);
m_jreason.addActionListener(dirty);
jTotal.addPropertyChangeListener("Text", dirty);
m_jNotes.addPropertyChangeListener("Text", dirty);
m_jNotes.addEditorKeys(m_jKeys);
writeValueEOF();
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:24,代码来源:PaymentsEditor.java
示例9: AttributeUseEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form AttributeSetEditor
* @param app
* @param dirty */
public AttributeUseEditor(AppView app, DirtyManager dirty) {
attributesent = new StaticSentence(app.getSession()
, "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
, null
, new SerializerRead() {@Override
public Object readValues(DataRead dr) throws BasicException {
return new AttributeInfo(dr.getString(1), dr.getString(2));
}}
);
attributemodel = new ComboBoxValModel();
initComponents();
jLineno.getDocument().addDocumentListener(dirty);
jAttribute.addActionListener(dirty);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:AttributeUseEditor.java
示例10: TaxEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form taxEditor
* @param app
* @param dirty */
public TaxEditor(AppView app, DirtyManager dirty) {
DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
initComponents();
taxcatsent = dlSales.getTaxCategoriesList();
taxcatmodel = new ComboBoxValModel();
taxcustcatsent = dlSales.getTaxCustCategoriesList();
taxcustcatmodel = new ComboBoxValModel();
taxparentsent = dlSales.getTaxList();
taxparentmodel = new ComboBoxValModel();
m_jName.getDocument().addDocumentListener(dirty);
m_jTaxCategory.addActionListener(dirty);
m_jCustTaxCategory.addActionListener(dirty);
m_jTaxParent.addActionListener(dirty);
m_jRate.getDocument().addDocumentListener(dirty);
jCascade.addActionListener(dirty);
jOrder.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:29,代码来源:TaxEditor.java
示例11: ThirdPartiesView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form ThirdPartiesView
* @param app
* @param dirty */
public ThirdPartiesView(AppView app, DirtyManager dirty) {
initComponents();
m_jCIF.getDocument().addDocumentListener(dirty);
m_jName.getDocument().addDocumentListener(dirty);
m_jAddress.getDocument().addDocumentListener(dirty);
m_jContactComm.getDocument().addDocumentListener(dirty);
m_jContactFact.getDocument().addDocumentListener(dirty);
m_jPayRule.getDocument().addDocumentListener(dirty);
m_jFaxNumber.getDocument().addDocumentListener(dirty);
m_jPhoneNumber.getDocument().addDocumentListener(dirty);
m_jMobileNumber.getDocument().addDocumentListener(dirty);
m_jEMail.getDocument().addDocumentListener(dirty);
m_jWebPage.getDocument().addDocumentListener(dirty);
m_jNotes.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:22,代码来源:ThirdPartiesView.java
示例12: ResourcesView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form ResourcesEditor */
public ResourcesView(DirtyManager dirty) {
initComponents();
m_ResourceModel = new ComboBoxValModel();
m_ResourceModel.add(ResourceType.TEXT);
m_ResourceModel.add(ResourceType.IMAGE);
m_ResourceModel.add(ResourceType.BINARY);
m_jType.setModel(m_ResourceModel);
m_jName.getDocument().addDocumentListener(dirty);
m_jType.addActionListener(dirty);
m_jText.getDocument().addDocumentListener(dirty);
m_jImage.addPropertyChangeListener("image", dirty);
m_jText.setAntiAliasingEnabled(true);
writeValueEOF();
}
开发者ID:nordpos,项目名称:nordpos,代码行数:20,代码来源:ResourcesView.java
示例13: RolesView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form RolesEditor */
public RolesView(DirtyManager dirty) {
initComponents();
m_jName.getDocument().addDocumentListener(dirty);
m_jText.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:RolesView.java
示例14: PlacesEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form PlacesEditor */
public PlacesEditor(DataLogicSales dlSales, DirtyManager dirty) {
initComponents();
m_sentfloor = dlSales.getFloorsList();
m_FloorModel = new ComboBoxValModel();
m_jName.getDocument().addDocumentListener(dirty);
m_jFloor.addActionListener(dirty);
m_jX.getDocument().addDocumentListener(dirty);
m_jY.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:PlacesEditor.java
示例15: FloorsEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form FloorsEditor */
public FloorsEditor(DirtyManager dirty) {
initComponents();
m_jName.getDocument().addDocumentListener(dirty);
m_jImage.addPropertyChangeListener("image", dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:FloorsEditor.java
示例16: CustomersView
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form CustomersView */
public CustomersView(AppView app, DirtyManager dirty) {
DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
initComponents();
m_sentcat = dlSales.getTaxCustCategoriesList();
m_CategoryModel = new ComboBoxValModel();
m_Dirty = dirty;
m_jTaxID.getDocument().addDocumentListener(dirty);
m_jSearchkey.getDocument().addDocumentListener(dirty);
m_jName.getDocument().addDocumentListener(dirty);
m_jCategory.addActionListener(dirty);
m_jNotes.getDocument().addDocumentListener(dirty);
txtMaxdebt.getDocument().addDocumentListener(dirty);
m_jVisible.addActionListener(dirty);
txtFirstName.getDocument().addDocumentListener(dirty);
txtLastName.getDocument().addDocumentListener(dirty);
txtEmail.getDocument().addDocumentListener(dirty);
txtPhone.getDocument().addDocumentListener(dirty);
txtPhone2.getDocument().addDocumentListener(dirty);
txtFax.getDocument().addDocumentListener(dirty);
txtAddress.getDocument().addDocumentListener(dirty);
txtAddress2.getDocument().addDocumentListener(dirty);
txtPostal.getDocument().addDocumentListener(dirty);
txtCity.getDocument().addDocumentListener(dirty);
txtRegion.getDocument().addDocumentListener(dirty);
txtCountry.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:36,代码来源:CustomersView.java
示例17: CustomersPayment
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form CustomersPayment */
public CustomersPayment() {
initComponents();
editorcard.addEditorKeys(m_jKeys);
txtNotes.addEditorKeys(m_jKeys);
dirty = new DirtyManager();
txtNotes.addPropertyChangeListener("Text", dirty);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:12,代码来源:CustomersPayment.java
示例18: init
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
public void init(AppView app) throws BeanFactoryException {
this.app = app;
dirty = new DirtyManager();
bd = null;
init();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:JPanelTable.java
示例19: StockDiaryEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form StockDiaryEditor */
public StockDiaryEditor(AppView app, DirtyManager dirty) {
m_App = app;
m_dlSales = (DataLogicSales) m_App.getBean("com.openbravo.pos.forms.DataLogicSales");
initComponents();
m_cat = new JCatalog(m_dlSales);
m_cat.getComponent().setPreferredSize(new Dimension(0, 245));
m_cat.addActionListener(new CatalogListener());
add(m_cat.getComponent(), BorderLayout.SOUTH);
// El modelo de locales
m_sentlocations = m_dlSales.getLocationsList();
m_LocationsModel = new ComboBoxValModel();
m_ReasonModel = new ComboBoxValModel();
m_ReasonModel.add(MovementReason.IN_PURCHASE);
m_ReasonModel.add(MovementReason.IN_REFUND);
m_ReasonModel.add(MovementReason.IN_MOVEMENT);
m_ReasonModel.add(MovementReason.OUT_SALE);
m_ReasonModel.add(MovementReason.OUT_REFUND);
m_ReasonModel.add(MovementReason.OUT_BREAK);
m_ReasonModel.add(MovementReason.OUT_MOVEMENT);
m_jreason.setModel(m_ReasonModel);
m_jdate.getDocument().addDocumentListener(dirty);
m_jreason.addActionListener(dirty);
m_jLocation.addActionListener(dirty);
jproduct.getDocument().addDocumentListener(dirty);
jattributes.getDocument().addDocumentListener(dirty);
m_junits.getDocument().addDocumentListener(dirty);
m_jprice.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:38,代码来源:StockDiaryEditor.java
示例20: TaxCustCategoriesEditor
import com.openbravo.data.user.DirtyManager; //导入依赖的package包/类
/** Creates new form taxEditor */
public TaxCustCategoriesEditor(DirtyManager dirty) {
initComponents();
m_jName.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:TaxCustCategoriesEditor.java
注:本文中的com.openbravo.data.user.DirtyManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论