delete.java

来自「webwork source」· Java 代码 · 共 40 行

JAVA
40
字号
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.examples.i18n;/** * This code is an adaptation of the I18N example from the JavaWorld article by Govind Seshadri. * http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp_p.html */public class Delete   extends Shop{   // Attributes ----------------------------------------------------   String album;      // Public  ------------------------------------------------------   public void setAlbum(String title)   {      this.album = title;   }   // Action implementation -----------------------------------------   protected String doExecute()      throws Exception   {      Cart cart = getCart();      CDList cdList = new CDList();      cdList.execute();      CD cd = cdList.getCD(album);      cart.removeItem(cd);      return SUCCESS;   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?