本文整理汇总了Java中com.openbravo.data.user.BrowsableEditableData类的典型用法代码示例。如果您正苦于以下问题:Java BrowsableEditableData类的具体用法?Java BrowsableEditableData怎么用?Java BrowsableEditableData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BrowsableEditableData类属于com.openbravo.data.user包,在下文中一共展示了BrowsableEditableData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: updateState
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
public void updateState(int iState) {
switch (iState) {
case BrowsableEditableData.ST_INSERT:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(false);
jbtnSave.setEnabled(m_bd.canInsertData());
break;
case BrowsableEditableData.ST_DELETE:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(false);
jbtnSave.setEnabled(m_bd.canDeleteData());
break;
case BrowsableEditableData.ST_NORECORD:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(false);
jbtnSave.setEnabled(false);
break;
case BrowsableEditableData.ST_UPDATE:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(m_bd.canDeleteData());
jbtnSave.setEnabled(m_bd.canUpdateData());
break;
}
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JSaver.java
示例2: updateState
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/**
*
* @param iState
*/
@Override
public void updateState(int iState) {
switch (iState) {
case BrowsableEditableData.ST_INSERT:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(false);
jbtnSave.setEnabled(m_bd.canInsertData());
break;
case BrowsableEditableData.ST_DELETE:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(false);
jbtnSave.setEnabled(m_bd.canDeleteData());
break;
case BrowsableEditableData.ST_NORECORD:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(false);
jbtnSave.setEnabled(false);
break;
case BrowsableEditableData.ST_UPDATE:
jbtnNew.setEnabled(m_bd.canInsertData());
jbtnDelete.setEnabled(m_bd.canDeleteData());
jbtnSave.setEnabled(m_bd.canUpdateData());
break;
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:30,代码来源:JSaver.java
示例3: updateState
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
public void updateState(int iState) {
if (iState == BrowsableEditableData.ST_INSERT || iState == BrowsableEditableData.ST_DELETE) {
// Insert o Delete
if (jbtnFirst != null) jbtnFirst.setEnabled(false);
if (jbtnPrev != null) jbtnPrev.setEnabled(false);
if (jbtnNext != null) jbtnNext.setEnabled(false);
if (jbtnLast != null) jbtnLast.setEnabled(false);
if (jbtnRefresh != null) jbtnRefresh.setEnabled(true);
}
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:JNavigator.java
示例4: showMessage
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
public static void showMessage(Component parent, DeviceScanner scanner, BrowsableEditableData bd) {
Window window = getWindow(parent);
JDlgUploadProducts myMsg;
if (window instanceof Frame) {
myMsg = new JDlgUploadProducts((Frame) window, true);
} else {
myMsg = new JDlgUploadProducts((Dialog) window, true);
}
myMsg.init(scanner, bd);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JDlgUploadProducts.java
示例5: updateState
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/**
*
* @param iState
*/
public void updateState(int iState) {
if (iState == BrowsableEditableData.ST_INSERT) {
// Insert
jlblIndex.setText("*");
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:11,代码来源:JCounter.java
示例6: updateState
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/**
*
* @param iState
*/
public void updateState(int iState) {
if (iState == BrowsableEditableData.ST_INSERT || iState == BrowsableEditableData.ST_DELETE) {
// Insert o Delete
if (jbtnFirst != null) jbtnFirst.setEnabled(false);
if (jbtnPrev != null) jbtnPrev.setEnabled(false);
if (jbtnNext != null) jbtnNext.setEnabled(false);
if (jbtnLast != null) jbtnLast.setEnabled(false);
if (jbtnRefresh != null) jbtnRefresh.setEnabled(true);
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:15,代码来源:JNavigator.java
示例7: showMessage
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/**
*
* @param parent
* @param scanner
* @param bd
*/
public static void showMessage(Component parent, DeviceScanner scanner, BrowsableEditableData bd) {
Window window = getWindow(parent);
JDlgUploadProducts myMsg;
if (window instanceof Frame) {
myMsg = new JDlgUploadProducts((Frame) window, true);
} else {
myMsg = new JDlgUploadProducts((Dialog) window, true);
}
myMsg.init(scanner, bd);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:JDlgUploadProducts.java
示例8: init
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
private void init(DeviceInputOutput deviceplu, BrowsableEditableData bd, DataLogicSales dataLogicSales, String locationId) {
initComponents();
getRootPane().setDefaultButton(jcmdOK);
m_deviceplu = deviceplu;
m_bd = bd;
this.dataLogicSales = dataLogicSales;
this.locationId = locationId;
setVisible(true);
}
开发者ID:nordpos,项目名称:nordpos,代码行数:10,代码来源:JDlgUploadProducts.java
示例9: showMessage
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
public static void showMessage(Component parent, AppView appView, BrowsableEditableData bd, DataLogicSales dataLogicSales) {
Window window = getWindow(parent);
JDlgUploadProducts myMsg;
if (window instanceof Frame) {
myMsg = new JDlgUploadProducts((Frame) window, true);
} else {
myMsg = new JDlgUploadProducts((Dialog) window, true);
}
myMsg.init(appView.getDevicePLUs(), bd, dataLogicSales, appView.getAppUserView().getUser().getProperties().getProperty("user.location.id", appView.getDefaultInventoryLocation()));
}
开发者ID:nordpos,项目名称:nordpos,代码行数:13,代码来源:JDlgUploadProducts.java
示例10: JCounter
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/** Creates new form JCounter */
public JCounter(BrowsableEditableData bd) {
initComponents();
bd.addBrowseListener(this);
bd.addStateListener(this);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:JCounter.java
示例11: updateState
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
public void updateState(int iState) {
if (iState == BrowsableEditableData.ST_INSERT) {
// Insert
jlblIndex.setText("*");
}
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:7,代码来源:JCounter.java
示例12: JListNavigator
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/** Creates new form JListBrowse */
public JListNavigator(BrowsableEditableData bd) {
this(bd, false);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:5,代码来源:JListNavigator.java
示例13: JNavigator
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
public JNavigator(BrowsableEditableData bd) {
this(bd, null, null, BUTTONS_ALL);
}
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:4,代码来源:JNavigator.java
示例14: JCounter
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/** Creates new form JCounter
* @param bd */
public JCounter(BrowsableEditableData bd) {
initComponents();
bd.addBrowseListener(this);
bd.addStateListener(this);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:8,代码来源:JCounter.java
示例15: JListNavigator
import com.openbravo.data.user.BrowsableEditableData; //导入依赖的package包/类
/** Creates new form JListBrowse
* @param bd */
public JListNavigator(BrowsableEditableData bd) {
this(bd, false);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:6,代码来源:JListNavigator.java
注:本文中的com.openbravo.data.user.BrowsableEditableData类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论