Используйте joda-time или просто замените переменную методом:
public static final DateFormat getDateTimeFormat() {
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss:SSS");
}
You have to use the CursorManager:
import mx.managers.CursorManager;
protected function textMouseOverHandler(event:Event):void
{
CursorManager.setCursor(yourCursor, yourPriority, xOffset, yOffset);
// Rest of your handler
}
protected function textMouseOutHandler(event:Event):void
{
// be sure to set the cursor back here
}
Вы можете использовать HBOX с меткой вместо TextInput. Система не изменит курсор, когда указатель мыши находится над меткой. Если вы хотите, чтобы текст был доступен для редактирования пользователем, вам нужно будет проделать еще немного работы. Очевидно, что алгоритмы сжатия
public class MyTextInput extends HBox
{
public function MyTextInput()
{
super();
var label:Label = new Label();
label.text="some text";
addChild(label);
addEventListener(MouseEvent.CLICK, editProperties, true);
}
private function editProperties(event:MouseEvent)
{
//do something to allow the user to edit the text e.g. PopupManager.createPopup
}
}
есть и другой способ, установив для свойства buttonMode значение true для любого компонента, который вы хотите. при этом вместо текстового курсора появляется курсор мыши.
Есть три свойства, которые необходимо изменить useHandCursor = true buttonMode = true mouseChildren = false
Узнайте больше в этой статье http: //www.anujgakhar.com/2008/03/27/flex-how-to-display-hand-cursor-on-components/