Latest messages

722 topics, 2262 messages
Kuix technical support » KuixInitializer - SplashScreen Image

you can do this:

1、 check out kuix source

2、modify  KuixMIDlet in package org.kalmeo.kuix.core;

3、modify mothod

/* (non-Javadoc)
  * @see org.kalmeo.kuix.core.KuixInitializer#getInitializationImageFile()
  */
 public String getInitializationImageFile() {
  //return null;

  return "/img/loading.png";
 }

4、modify mothod

/* (non-Javadoc)
  * @see org.kalmeo.kuix.core.KuixInitializer#getInitializationMessage()
  */
 public String getInitializationMessage() {
  //return "正在载入...";
  return "";
 }

Kuix technical support » Different WTK then data can't see

hi all..

why when i choose different type of WTK data can't see on the screen? first time i use Defaultcolorphone, the data show on screen(i'm use list as data) and when i choose mediacontrol skin data on the screen can't be see??

sorry for my english,,

Kuix technical support » using filter in lists

ok,I have solved all the problems,cheers.

Kuix technical support » using filter in lists

hi,

I have the same question with you,I want to build a tree with list,

articleclasstree.xml :

<scrollPane>
  <list>
   <_renderer><![CDATA[
    <listitem onAction="treeitem"> 
     <picture>
      ${image}.png
      <_style>margin:0 0 0 ${layer}</_style>     
     </picture>     
     ${name}     
    </listitem>
   ]]></_renderer>
   <_items>@{lArticleClasss}</_items>
  </list>
 </scrollPane>

 ArticleClassTreeFrame.java onAdded:

public void onAdded() {
  // Load the content from the XML file with Kuix.loadScreen static method  
     Screen screen = Kuix.loadScreen("articleclasstree.xml", articleclasslistDataProvider);
    
     ArticleClassDataProvider item1 = new ArticleClassDataProvider();
     item1.setid("1");item1.setname("Node01");item1.setparent("0");item1.setlayer("0");item1.setimage("jia");
     articleclasslistDataProvider.addItem("lArticleClasss", item1);
         
     ArticleClassDataProvider item2 = new ArticleClassDataProvider();
     item2.setid("2");item2.setname("Node02");item2.setparent("0");item2.setlayer("0");item2.setimage("jian");
     articleclasslistDataProvider.addItem("lArticleClasss", item2);
    
     ArticleClassDataProvider item3 = new ArticleClassDataProvider();
     item3.setid("3");item3.setname("Node03");item3.setparent("1");item3.setlayer("18");item3.setimage("jian");
     articleclasslistDataProvider.addItem("lArticleClasss", item3);
    
     ArticleClassDataProvider item5 = new ArticleClassDataProvider();
     item5.setid("5");item5.setname("Node05");item5.setparent("3");item5.setlayer("36");item5.setimage("jian");
     articleclasslistDataProvider.addItem("lArticleClasss", item5);
    
     ArticleClassDataProvider item4 = new ArticleClassDataProvider();
     item4.setid("4");item4.setname("Node04");item4.setparent("1");item4.setlayer("18");item4.setimage("jian");
     articleclasslistDataProvider.addItem("lArticleClasss", item4);
         
     // Set the application current screen 
     screen.setCurrent();
 }

ArticleClassDataProvider.java:

package com.sws.JSMobileKMS.dataprovider;

import org.kalmeo.kuix.core.model.DataProvider;

public class ArticleClassDataProvider extends DataProvider{
 private String id;
 private String name;
 private String parent;
 private String layer;
 private String image;

 public String getname() {
  return this.name;
 }
 public void setid(String id) {
        this.id = id;
    }
 public void setname(String name) {
        this.name = name;
        dispatchUpdateEvent("name");
        //dispatchItemsUpdateEvent( DataProvider.FILTER_MODEL_UPDATE_EVENT_TYPE, "name", this, (LinkedListEnumeration)getUserDefinedValue( "name" ) );
    }
 public void setparent(String parent) {
  this.parent=parent;
 }
 public void setlayer(String layer) {
  this.layer=layer;
  dispatchUpdateEvent("layer");
 }
 public void setimage(String image) {
  this.image=image;
  dispatchUpdateEvent("image");
 }
 protected Object getUserDefinedValue(String property) {
  if("name".equals(property)) {
   return name;
  }
  if("layer".equals(property)) {
   return layer;
  }
  if("image".equals(property)) {
   return image;
  }
        return null;
    }
}
ArticleClassListDataProvider.java:

package com.sws.JSMobileKMS.dataprovider;

import org.kalmeo.kuix.core.model.DataProvider;

public class ArticleClassListDataProvider extends DataProvider{
}

the image when runing:

now,When I clicked the item,for example Node02,I hope the child node contraction,therefore i want to find out all the child nodes,then remove or add them in ArticleClassListDataProvider,or change them visible true or false,but i don't knows how to use Filter filters out them,and when i change item dataprovider ArticleClassDataProvider name property to "node aaa",  the UI no change,can you help me?my e-mail :252386922@qq.com, thanks!

Kuix technical support » venkyn, please post your codes for DIRECT TEXTFILED INPUT

venkyn, please post your codes for DIRECT TEXTFILED INPUT

Kuix technical support » Direct textfield input

Please anybody help to solve the issue. I need modified textfield widget that can be directly entered keys on it. It's very urgent, please help. Dear moderators can you explain how to do such thing. I read some solutions but couldn't understand fully. Please help.

Kuix technical support » Are there some relevant books to enhance the learning of kuix?

Hi all,

To learn kuix,  in addition to read the kuix demo, Are there some relevant books to enhance the learning of kuix?

I'm looking forward for  your  pointing.
 Thanks in advance!
Kuix technical support » Object collection + xml

Hi , 

Another one question,

how can I show object collection by using xml,

For example - I have object x and it has  atrributes x1 and x2

The count of x is not limited

 

best regards,

Uldis

Kuix technical support » Tutorial problem (full screen)

sorrry for topic, 

Problem soved by updating microemulator version :))

Kuix technical support » Tutorial problem (full screen)

Hello,

 

Today I started to use Kalmeo framework and I got one problem.

I tried to go trough tutorial and in step 2 there is first xml layout and css example.

So - by using microemulator - I can not get fullscreen mode. in the bottom of screen are menubar , but it is not visibible and background color is about 70% of screen height.

 

before to continue I want no know - it is only microemulator bug or I need other layout or style to define fullscreen.

 

best regards, 

Uldis

Kuix technical support » HelloWorld => java.lang.ClassNotFoundException

Hi,

      I am facing similar problem.

Hi,
      I am new bie to J2ME and EclipseME .

I have added third party jar file (floggy-persistance-framework.jar) in the buildpath and then I exported in  properties > order and export tab . I have added it in verified>libs folder also. I am sure the third party jar is added to my classpath.(because it is not showing any compile time errors)

Now it is showing the following error. I think EclipseME not able to find my midlet because of classpath settings problem (after adding and exporting third party jar file). Please help me. I was trying to solve this problem from last 3 days.

Running with storage root C:\Users\srikanthnagachandm\j2mewtk\2.5.2\appdb\DefaultColorPhone
Running with locale: English_United States.1252
Running in the unidentified_third_party security domain
java.lang.ClassNotFoundException: ExampleFloggy
   at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
   at com.sun.midp.midlet.Scheduler.schedule(+52)
   at com.sun.midp.main.Main.runLocalClass(+28)
   at com.sun.midp.main.Main.main(+80)
Execution completed.
3349083 bytecodes executed
17 thread switches
1667 classes in the system (including system classes)
17251 dynamic objects allocated (514224 bytes)
1 garbage collections (0 bytes collected)


environment I am using :
sun WTK 2.5.2
CLDC - 1.1
MIDP - 2.0

Eclipse - 3.5.2 (with eclipseME plugin)


Is there anywhere  need to provide command line arguments to include classpath ? (because without adding third party jar, my midlet is working fine). In some forum, I found I have to add command prompt like the below line
midp -classpath . -Xdescriptor stock.jad
But, I don't know where to confiuge this line in Eclipse also. 

Kindly provide your suggestions.

Kuix technical support » help me in Tutorial 1 : My First Kuix App

Hello Wupter.

you can find those lib in kutil (Kuix Utility)

http://www.kalmeo.org/projects/kutil/download

have fun with kuix :)

Kuix technical support » help me in Tutorial 1 : My First Kuix App

I'am new in Kuix. get code from kalmeo.org , The import org.kalmeo.util.LinkedListItem cannot be resolved in kuixdemo,where have org.kalmeo.util.worker.WorkerErrorListener

 

org.kalmeo.util.MathFP; org.kalmeo.util.frame.Frame;org.kalmeo.util.worker.Worker; couldn't found , where are them.

Kuix technical support » Direct textfield input

hi sir,

how to solve the textfield direct entry of data without opening the new editor plz help me.

 

thanks.

Kuix technical support » Load external Images

what is the type for lMedias in your DataProvider?