How to create the custom Calendar in LWUIT? - java-me

Currently in LWUIT, I can use Calendar. But I can't add the notes on particular dates.
How to create the custom Calendar in LWUIT? Because I need to show the birthday notes on LWUIT Calendar and want to show the birthday notes when user select that particular dates. See this sample image,
Is this possible to create like above sample Calendar in LWUIT?

You can derive Calendar and override:
protected void updateButtonDayDate(Button dayButton, int currentMonth, int day);
Here you can effectively customize the button in any way you choose starting by setting a UIID or anything like that.
If you want to add basic features to the button via inheritance you can override:
protected Button createDay();

You can modify calendar's all the things in themes / designer, including color, font etc.
Just add appropriate component..
Thanks, Akash

Related

How to create a pop up in hybris backoffice?

I am trying to create a popup message in the Backoffice PCM. In particular, from within the editor area of a product. From the editor a user can click on the assortment view or compare view buttons on the side toolbar to change screens (redirect).
I want to give the user a popup to inform them that any changes will be lost.
Any ideas on how to accomplish this?
I have tried to create my own widget and wiring my custom widget to the ootb pcmbackoffice-toolbar but have not been successful.
It's possible to display a simple popup via the ZK framework (the framework used by Backoffice). From the backoffice code you can open a popup like this:
import org.zkoss.zul.Messagebox;
public void someMethod() {
// do some actions...
Messagebox.show("Some Messagetext", "Info", Messagebox.OK, Messagebox.INFO);
}

How to display the designer with user controls

I have added a User Control to my project. After having added it, I have extended it to the "tabPage" class (since I want it to be a tabPage):
public partial class userParPage : TabPage
{
...
}
Since that moment the designer got a "strange" look. Here's a picture:
It doesn't matter where I place the label and the textbox, I am not able to change their size/position etc.
Does anyone know how to reset the normal designer?
I think I have found a work-around.
Change the class from tabPage to UserControl. The Winform designer will display as usual;
Make your changes to the form;
When it's done, re-change the class from UserControl to tabPage.
Like this, you will be able to build up visually your custom user control and to give it a specific type (such as tabPage) just after.

ext.net calendar customisation

i am trying to write my own application and using the ext,net.
i am trying to add the calendar of ext.net from the ext.examples.net (remote data )
how can i , when creating a new event, 1st i want to add more fields than the class event contains.
and i want to customize the pop up window when editing , or creating a new event. so i would be able to add all the custom fields that i want and resave in database.
or if it is possible to change all the form that goes pop up, for the add, edit , new events.
any way to d3o that?
REGARDS
You can do that by extending Ext.Net.DateField control.
For changing control rendering and adding custom fields to control you have to inherit from Ext.Net.DateField class and write own ExtJs extenstion for ExtJs DateField.
For changing Events you have to extend Ext.Net.DateFieldListeners and add them to your new control. Of course, you have to add appropriate code to ExtJs control extension.
To do that you can look through Ext.NET source code.
But this is not easy.
More easy in some ways is to just override css and add extraparameters to DirectEvent or DirectMethods. If you want to add some properties to instance of control you can use CustomConfig property. And if some logic of your control is working not as much as you want you can override it by ExtJs Ext.override method.

Name of control for toggle boxes in sharepoint editor part

I'm trying to modify the EditorPart controller for my web part. Basically what I want is to have my custom controls inside a box like the standard properties that can toggle between visible and hidden.
I've been googling for a while, but I cannot seem to find an answer.
Just to clarify: I know I can use the Category property to accomplish this when adding web part properties directly to the web part, but I've extended the EditorPart controller and so I don't think I can simply add [Category("Feed settings")] to the TextBox and LiteralControls I'm creating (correct?).
What you'd need for a standard property is to mark it with the Category attribute:
[Category("My Category")]
public string FeedQuery { get; set; }
(You'll need to add the System.ComponentModel namespace to your class file).
For editor parts it is not so simple. It appears that you can't add them to the standard categories. It is possible to style the editor part to resemble the OOB panels as shown here

How to add segmented control on tableviewcell in iPhone

My requirement is when user clicks on tableviewcell, segmented control should appear on that particular cell. Is there something I need to do in didSelectrowAtindexPath? Any suggestions?
You Can try to solve this using a custom UITableViewCell. Create a custom cell with a segmented control which would have it's valueChanged action in the class of your custom cell. When the user changes the segment, the action in your custom cell class would be called and you'd be able to handle it.

Resources