码迷,mamicode.com
首页 >  
搜索关键字:custom state    ( 10586个结果
struts.custom.i18n.resources
每种框价都会有国际化的支持,struts2的国际化大致上分为页面的国际化,Action的国际化以及xml的国际化首先在struts.properties文件中加入以下内容:struts.custom.i18n.resources=messageResource或在struts.xml中加入资源文件的...
分类:其他好文   时间:2014-05-28 21:46:35    阅读次数:324
读取XML文件的指定节点的值 并转换为Item
cmb_State_Send.ItemsSource = null; XmlDocument doc = new XmlDocument(); doc.Load("D:\\模板\\WorkstationSta...
分类:其他好文   时间:2014-05-28 10:56:45    阅读次数:249
Custom UIView 通过xib实现一个简单地自定义视图
1 /**2 * 使用Custom UIView的这条路,我走的很不顺利,前期犯2,中期有事,浪费了很多时间!3 * 现在空闲的时间不多了,只能抓紧时间写两个小demo,一来做练习,二来整理下也许能给要学习的人一些帮助!4 */1 /**2 * Custom UIView常用的三种实现...
分类:其他好文   时间:2014-05-28 03:57:34    阅读次数:316
requestWindowFeature
requestWindowFeature可以设置的值有:// 1.DEFAULT_FEATURES:系统默认状态,一般不需要指定// 2.FEATURE_CONTEXT_MENU:启用ContextMenu,默认该项已启用,一般无需指定// 3.FEATURE_CUSTOM_TITLE:自定义标题。...
分类:Windows程序   时间:2014-05-27 16:01:48    阅读次数:349
自定义ActionBar图标
If you are supporting pre-3.0 with your application be sure you put this version of the custom theme invalues-v11or similar.
分类:其他好文   时间:2014-05-26 17:54:46    阅读次数:206
利用View静态画图
you should consider creating a custom View component and drawing with a Canvas inView.onDraw(). The most convenient aspect of doing so is that the And...
分类:其他好文   时间:2014-05-26 00:05:06    阅读次数:327
设计模式之状态模式
《设计模式》对状态模式的定义:允许一个对象在其状态改变时,改变它的行为。看起来对象似乎修改了它的类。别名:状态对象(Objects for State)。 在下面两种情况下均可以使用State模式: 1 一个对象的行为取决于它的状态,并且他必须在运行时刻根据状态改变它的行为。 2 一个操作中含有庞大的多分枝的条件语句,并且这些分支依赖于该对象的状态。这个状态通常用一个或多个枚举常量表示。通常...
分类:其他好文   时间:2014-05-25 22:47:41    阅读次数:254
State 模式
State模式中我们将状态逻辑和动作实现进行分离。允许一个对象在其内部状态改变时改变它的行为,对象看起来似乎修改了它的类;在一个状态即将结束的时候启用下一个状态。 1 /////////state.h//////////////////////////////////////////////////...
分类:其他好文   时间:2014-05-25 20:34:33    阅读次数:296
lua入门之一:c/c++ 调用lua
#include //lua头文件 #ifdef __cplusplus extern "C" { #include "lua.h" #include #include } #else #include #include #include #endif int main(int argc,char ** argv) { lua_State * L=NU...
分类:编程语言   时间:2014-05-24 23:16:07    阅读次数:362
POJ - 1077 Eight
题意:经典八数码问题 思路:HASH+BFS#include #include #include #include using namespace std; const int MAXN = 500000; const int size = 1000003; typedef int State[9]; char str[30]; int state[9],goal[9]={1, 2, ...
分类:其他好文   时间:2014-05-24 21:46:23    阅读次数:359
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!