I cannot get an InCopy script to remove paragraphs
Here is my code:
myText = app.activeDocument.stories.item(0);
for (var i = 8;i>0; i--){
myText.paragraphs[i].remove(); }
I cannot get an avi file to run on quicktime player
AVI is a legacy file container type abandoned by it developer nearly a dozen years ago as being out dated. While this container is still supported by the QT X Player, the codecs used to compress the data stored in the AVI file may not be supported by the "closed" nature of this media player. You basically have three options at this point:
Convert the AVI content to a more modern file container/compression format combination,
Install and use the QT 7 Player which has an "open" architecture that allows the player to access additional codecs which may already be installed on your system for playback, or
Use a third-party media player VLC that has its own built-in codec support which works independently from you systems's codec configuration for playback.
It's up to you to decide which option is best for your particular needs here.
Similar Messages
-
Cannot get a plugin script to set the Root.Name to a value
I am experimenting with trying to build a data plugin. One of the things I discovered doesn't work is when I try to set the name of the Root to a string of my choice, like
Root.Name = "My Data"
Instead, it seems DIAdem always sets the name of the root to the name of the log file instead.
I tried turning on the script recorder and doing the change manually, and it recorded the code line Data.Root.Name = "My Data" but if I try to use that line of code in my plugin DIAdem reports a scripting error and says it cannot find 'Data'.
What I am doing wrong?Regarding your scripting error, you mixed up DIAdem objects with the VBS DataPlugin API.
The Data object you refer to in "Data.Root.Name" is DIAdem specific and cannot be used in DataPlugin code. This is because DataPlugins are generic and can also be used in other National Instruments software products like LabVIEW.
Switching the syntax in DIAdem Script (File->Change Syntax) to "VBS DataPlugin" should help to write DataPlugin scripts. E.g. "Data.Root.Name" should not be recognized by DIAdems Syntax Highlighting. -
I am beginning the process of upgrading to the latest release
and need the upgrade zip file but the link is broke-it seems
lots of links are broke.
Can someone take a look at the link and get it operational?
Thanks
msrholding down option key at bootup not giving you the bootmenu have nothing to do with win8.1
even if one never installed anything in terms bootcamp at all then holding down the option key should give the option between osx and the restore to last clean osx version
if you don't get the option then I'd say the cause is not windows as the menu is handled by the bootloader which is before windows takes over -
Open script cannot get connection from the brower helper after 15 seconds.
Error:
===
Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
Please Note:
========
1. I have tried this only on IE
2. I am running OATS on a Remote desktop
Situation:
======
Trying to stop the recording
Try to get xpath of an object using Inspect Path
Setup details
========
Windows XP 5.1 Service Pack 3, x86
OpenScript 12.1.0.1.383
Internet Explorer 8.0.6001.18702
FireFox 13.0.1
Mitigation steps done till now:
==================
1. Disabled windows firewall
2. Disable XSS filter setting
3. Restarted the ATS services (3 of them)
4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
Error in worspace_log:
=============
To Change setting:
Go to Tools > Internet Options and Choose Security Tab
Select the Zone to modify and Press Custom level
Find Enable XSS filter Setting - Select Disable and click Ok
!ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
!MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
!ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
!MESSAGE Did not auto-fix the problem.
!ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
!MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
Aprreciate help on this.To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
Reconfiguring the OATSHelperSvr Service:
1. Open the services panel (Start > Run > services.msc)
2. Find the Oracle Application Testing Suite Helper Service
3. Right Click > Properties then select the Log On Tab
4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
5. Click OK
6. Restart the service after dialogs are closed by Right Click > Restart
7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
total)
You should now retry running the test in Oracle Test Manager -
I cannot get onto iTunes to remove a credit card, so how do I do it from my iPod Touch?
I cannot get onto iTunes to remove a credit card, so how do I do it from my iPod Touch?
Go to Settings>Store>Apple ID>View Apple ID>Edit Payment information
-
I have just downloaded firefox 3.6.11 and adobe flashplayer update and adobe reader update. Now I cannot get firefox to open. I have tried removing Firefox but when I try to do that it says that I need to close firefox - but of course it is not open. I have waited a long time but nothing has happened so I am getting desperate Thanks -- Jerry
Do a clean (re)install:
* Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
* Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
* Don't remove personal data when uninstalling.
* It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
You can initially skip the step to create a new profile, that may not necessary for this issue.
See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall -
I am trying to get my Foxfire to upload. I cannot get it to open. I have tried to delete it from my computer but the computer insists that foxfire is running. I wanted to try and remove it so that I could reinstall it and see if that fixed the problem.
See "Hang at exit":
* http://kb.mozillazine.org/Firefox_hangs
* [[Firefox hangs]]
See also:
* http://kb.mozillazine.org/Browser_will_not_start_up -
I have installed a new HD. my G5 will R/W ok but I cannot get it to boot from this HD so I can remove old HD which is becoming unreliable intermittedly
I have installed system , and tried preferences but new disc does not show.What Format is it, & how did you put the OS on it? Cloned the other one, or used the Install Disc?
Does it show as a boot choice if you hold the Option/alt key down at power up? -
How do you remove face tagging icon from images. I cannot get them off some images.
How do you remove face tagging icon from images. I cannot get them off! This is for adobe photoshop elements 6. Thanks
The links below have instructions for deleting photos.
iOS and iPod: Syncing photos using iTunes
http://support.apple.com/kb/HT4236
iPad Tip: How to Delete Photos from Your iPad in the Photos App
http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
Another Way to Quickly Delete Photos from Your iPad (Mac Only)
http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
How to Delete Photos from iPad
http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
How to: Batch Delete Photos on the iPad
http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
(With iOS 5.1, use 2 fingers)
How to Delete Photos from iCloud’s Photo Stream
http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
Cheers, Tom -
I received an Mac Pro (2007). It was shipped without a hard drive. I ordered a hard drive, 1TB Barracuda Sata but cannot get it to partition. I have OSX Mavericks on a USB drive. Help?
Notr I edited my previous reply to say you also have to upgrade the video card
https://discussions.apple.com/thread/5827271
https://discussions.apple.com/docs/DOC-6592
"OS X Mavericks on an Original Mac Pro", FairerPlatform, October 14, 2013
Jump up^ "Mac Pro review, 9 out of 10". Ars Technica. -
I accidently unplugged my iphone thinking it had finished backing up, i lost everything and had to restore. Everything came back except my music. I have tried to put it back but cannot get it to sync back hope someone can help!
Hi lynette,
With your device connected to the computer, click on the Music tab, and uncheck the Sync Music box and sync. Then go back in and reselect the Sync Music box (and any other filters you want), and re-sync. See if that will download your music.
Cheers,
GB -
OTM-Cannot get a connection from helper after 120 seconds.
Can any one tell me how to fix the problem of ,
OTM not able to run the scripts, and getting the following error:
"Cannot get a connection from helper after 120 seconds. "
I have tried un-installing and installing all the services , actually its happening for helper service,but at the same time
Its working when we use OpenScript, with out any such helper issue but when we use to run the same script using OTM , the above mentioned error message is getting displayed.
Please let me know a solution, if any one has made a fix for this.
Thanks in Advance
AtishHi,
Step1: Uninstall ATS products and Oracle XE database
Step2: Remove/Rename the following folders.
Remove/Rename ATS install directory (e.g. C:\OracleATS).
Remove/Rename the directory: C:\Documents and Settings\username\osworkspace (depends on your Operating System, it may look like: C:\Users\username\osworkspace)
Remove/Rename the directory: C:\Program Files\Oracle\Inventory ( depends on your Operating System, it may look like: C:\Program Files (x86)\Oracle\Inventory)
C:\Windows\rsw.ini
Step3: Remove the following Services (if services exist)
Start -> Run. Enter "cmd" Type the command: sc delete servicename
Oracle Application Testing Suite Application Service
Step4: Remove the Registry Keys (if exist)
Start -> Run. Enter "regedit" to launch Registry Editor. Remove the keys below:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle Application Testing Suite Application Services
HKEY_LOCAL_MACHINE\Software\Oracle\Oracle Application Testing Suite and Oracle Test Management
Step5: Restart your System
Step6: Install ATS with admin privilege
Regards,
Deepu M -
[SOLVED]Cannot get 1680x1050
Hey all
New to arch, managed to get it all installed with Gnome. Problem I have is the screen display, with the standard arch setup with this xorg.conf:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection
Section "Module"
Load "dbe"
Load "glx"
Load "dri"
Load "extmod"
Load "dri2"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "Dac6Bit" # [<bool>]
#Option "Dac8Bit" # [<bool>]
#Option "BusType" # [<str>]
#Option "CPPIOMode" # [<bool>]
#Option "CPusecTimeout" # <i>
#Option "AGPMode" # <i>
#Option "AGPFastWrite" # [<bool>]
#Option "AGPSize" # <i>
#Option "GARTSize" # <i>
#Option "RingSize" # <i>
#Option "BufferSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "NoBackBuffer" # [<bool>]
#Option "DMAForXv" # [<bool>]
#Option "FBTexPercent" # <i>
#Option "DepthBits" # <i>
#Option "PCIAPERSize" # <i>
#Option "AccelDFS" # [<bool>]
#Option "IgnoreEDID" # [<bool>]
#Option "CustomEDID" # [<str>]
#Option "DisplayPriority" # [<str>]
#Option "PanelSize" # [<str>]
#Option "ForceMinDotClock" # <freq>
#Option "ColorTiling" # [<bool>]
#Option "VideoKey" # <i>
#Option "RageTheatreCrystal" # <i>
#Option "RageTheatreTunerPort" # <i>
#Option "RageTheatreCompositePort" # <i>
#Option "RageTheatreSVideoPort" # <i>
#Option "TunerType" # <i>
#Option "RageTheatreMicrocPath" # <str>
#Option "RageTheatreMicrocType" # <str>
#Option "ScalerWidth" # <i>
#Option "RenderAccel" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ShowCache" # [<bool>]
#Option "ClockGating" # [<bool>]
#Option "VGAAccess" # [<bool>]
#Option "ReverseDDC" # [<bool>]
#Option "LVDSProbePLL" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # [<bool>]
#Option "ConnectorTable" # <str>
#Option "DefaultConnectorTable" # [<bool>]
#Option "DefaultTMDSPLL" # [<bool>]
#Option "TVDACLoadDetect" # [<bool>]
#Option "ForceTVOut" # [<bool>]
#Option "TVStandard" # <str>
#Option "IgnoreLidStatus" # [<bool>]
#Option "DefaultTVDACAdj" # [<bool>]
#Option "Int10" # [<bool>]
#Option "EXAVSync" # [<bool>]
#Option "ATOMTVOut" # [<bool>]
#Option "R4xxATOM" # [<bool>]
#Option "ForceLowPowerMode" # [<bool>]
#Option "DynamicPM" # [<bool>]
#Option "NewPLL" # [<bool>]
#Option "ZaphodHeads" # <str>
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "R420 JK [Radeon X800]"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection]
All I can get is 1280x1024. I have antiX which is based on Mepis on a different partition, it is also based on Debian testing so should have all the newer xorg's etc, Now that displays 1680x1050 just fine, so I thought I would try and copy over that xorg.conf to arch which is:
Section "ServerFlags"
Option "DontZap" "Off"
Option "AllowMouseOpenFail" "true"
Option "BlankTime" "0"
Option "OffTime" "0"
EndSection
Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "HorizScrollDelta" "0"
Option "MinSpeed" "0.09"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0015"
Option "SHMConfig" "on"
EndSection
Section "InputDevice"
Driver "synaptics"
Identifier "ALPS Touchpad"
Option "Device" "/dev/input/mouse0"
Option "Protocol" "event"
Option "LeftEdge" "130"
Option "RightEdge" "840"
Option "TopEdge" "130"
Option "BottomEdge" "640"
Option "FingerLow" "7"
Option "FingerHigh" "8"
Option "MaxTapTime" "180"
Option "MaxTapMove" "110"
Option "EmulateMidButtonTime" "75"
Option "VertScrollDelta" "20"
Option "HorizScrollDelta" "0"
Option "MinSpeed" "0.25"
Option "MaxSpeed" "0.50"
Option "AccelFactor" "0.030"
Option "EdgeMotionMinSpeed" "200"
Option "EdgeMotionMaxSpeed" "200"
Option "UpDownScrolling" "1"
Option "CircularScrolling" "1"
Option "CircScrollDelta" "0.1"
Option "CircScrollTrigger" "2"
Option "SHMConfig" "on"
EndSection
Section "InputDevice"
Identifier "Appletouch"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "100"
Option "RightEdge" "1120"
Option "TopEdge" "50"
Option "BottomEdge" "310"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapMove" "220"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "MinSpeed" "0.79"
Option "MaxSpeed" "0.88"
Option "AccelFactor" "0.0015"
Option "SHMConfig" "on"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "unknown"
ModelName "unknown"
Option "DPMS" "true"
HorizSync 30-75
VertRefresh 55-70
EndSection
Section "Device"
Identifier "Card0"
Driver "radeon"
BoardName "unknown"
Screen 0
#Option "UseDisplayDevice" "dfp"
#Option "MonitorLayout" "crt,crt"
#BusID "PCI:1:0:0"
#Option "sw_cursor" # needed for some ati cards
#Option "hw_cursor"
#Option "NoAccel"
#Option "ShowCache"
#Option "ShadowFB"
#Option "UseFBDev"
#Option "Rotate"
Option "UseInternalAGPGART" "no"
Option "XAANoOffscreenPixmaps" "true"
# savage special options, use with care
#Option "NoUseBios"
#Option "BusType" "PCI"
Option "DmaMode" "None"
# nvidia special options, use with care
Option "CursorShadow" "1"
Option "CursorShadowAlpha" "63"
Option "CursorShadowYOffset" "2"
Option "CursorShadowXOffset" "4"
Option "FlatPanelProperties" "Scaling = native"
Option "NoLogo" "true"
Option "UseEDID" "true"
Option "AddARGBGLXVisuals" "true"
Option "RenderAccel" "true"
#Option "AllowGLXWithComposite" "true"
EndSection
Section "Device"
Identifier "Card1"
Driver "radeon"
BoardName "unknown"
Screen 1
#Option "MonitorLayout" "crt,crt"
#BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 24
SubSection "Display"
Depth 8
Modes "1680x1050"
EndSubSection
SubSection "Display"
Depth 15
Modes "1680x1050"
EndSubSection
SubSection "Display"
Depth 16
Modes "1680x1050"
EndSubSection
SubSection "Display"
Depth 24
Modes "1680x1050"
EndSubSection
SubSection "Display"
Depth 32
Modes "1680x1050"
EndSubSection
# Only the official NVIDIA driver supports twinview
# these setting are an example
Option "TwinView" "false"
Option "SecondMonitorVendorName" "unknown"
Option "SecondMonitorModelName" "unknown"
Option "SecondMonitorHorizSync" "30-75"
Option "SecondMonitorVertRefresh" "55-70"
#Option "MetaModes" "1024x768, 1024x768"
Option "TwinViewOrientation" "RightOf"
Option "ConnectedMonitor" "dfp,dfp"
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
It gets me a little closer but not correct yet, this has a max display of 1600x1200 but still no 1680x1050. The card is an older ati x800 which uses the old ATI 9-3 driver, which can't be used in the newer xorg's, but like with antiX the open source driver is fine. glxgears runs fine. But I just cannot get my screen to displa its native res. Any help would be great.
Thanks
Last edited by voorhees1979 (2010-04-18 22:30:24)Hi
Thanks again for trying to help me. Removing xorg.conf and then rebooting didnt help me. This is from xrandr again:
[voorhees@myhost ~]$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0*
800x600 60.3 56.2
848x480 60.0
640x480 59.9 59.9
-Qs ati:
[voorhees@myhost ~]$ pacman -Qs ati
local/alsa-lib 1.0.22-1
An alternative implementation of Linux sound support
local/alsa-oss 1.0.17-1
OSS compatibility library
local/alsa-utils 1.0.22-2
An alternative implementation of Linux sound support
local/ati-dri 7.7.1-1
Mesa DRI drivers for AMD/ATI Radeon
local/brasero 2.30.0-1
A disc burning application for Gnome
local/cdrkit 1.1.10-1
Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction
local/clutter 1.2.4-1
A GObject based library for creating fast, visually rich graphical user interfaces
local/coreutils 8.4-2 (base)
The basic file, shell and text manipulation utilities of the GNU operating system
local/dasher 4.10.1-2 (gnome-extra)
Information-efficient text-entry interface, driven by natural continuous pointing gestures
local/diffutils 2.9-1 (base)
Utility programs used for creating patch files
local/docbook-xml 4.5-4
A widely used XML scheme for writing documentation and help
local/evolution 2.30.0.1-1 (gnome-extra)
Integrated Workgroup and Personal Information Management for Gnome
local/evolution-data-server 2.30.0-2
Evolution Data Server provides a central location for addressbook and calendar in the GNOME Desktop
local/file 5.04-2 (base)
File type identification utility
local/gamin 0.1.10-1
Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration
Monitor) system.
local/gconf 2.28.1-1
A configuration database system
local/gdm 2.30.0-1 (gnome-extra)
Gnome Display Manager (a reimplementation of xdm)
local/gettext 0.17-3 (base)
GNU internationalization library
local/gnome-disk-utility 2.30.1-1
GNOME libraries and applications for dealing with storage devices
local/gnome-doc-utils 0.20.0-1
Documentation utilities for Gnome
local/gnome-menus 2.30.0-1
GNOME menu specifications
local/gnome-mime-data 2.18.0-4 (gnome)
The base MIME and Application database for GNOME
local/gnome-system-tools 2.30.0-2
Gnome System Configuration Utilities
local/gnome2-user-docs 2.30.0-1 (gnome)
User documentation for GNOME2
local/guile 1.8.7-2
Guile is a portable, embeddable Scheme implementation written in C
local/hal-info 0.20091130-1
Hardware Abstraction Layer information files
local/hdparm 9.28-1
A shell utility for manipulating Linux IDE drive/driver parameters
local/heimdal 1.3.2-1
Implementation of Kerberos V5 libraries
local/icu 4.4-2
International Components for Unicode library
local/imagemagick 6.6.0.10-1
An image viewing/manipulation program
local/imlib2 1.4.2-6
Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon
support
local/initscripts 2010.01-1 (base)
System initialization/bootup scripts
local/iputils 20100214-2 (base)
IP Configuration Utilities (and Ping)
local/jasper 1.900.1-5
A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard
local/libbonobo 2.24.3-1
A set of language and system independant CORBA interfaces for creating reusable components
local/libcanberra 0.23-1
A small and lightweight implementation of the XDG Sound Theme Specification
local/libcroco 0.6.2-1
GNOME CSS2 parsing and manipulation toolkit
local/libdatrie 0.2.3-1
Libdatrie is an implementation of double-array structure for representing trie, as proposed by Junichi
Aoe.
local/libdvdread 4.1.3-1
libdvdread provides a simple foundation for reading DVD video disks
local/libgail-gnome 1.20.2-1 (gnome)
GNOME Accessibility Implementation Library for gnomeui and libbonoboui
local/libgdiplus 2.6.2-1
An Open Source Implementation of the GDI+ API
local/libgksu 2.0.12-1
gksu authorization library
local/libgtop 2.28.1-1
A library that read information about processes and the running system
local/libgweather 2.30.0-1
Provides access to weather information from the net
local/libical 0.44-1
An open source reference implementation of the icalendar data type and serialization format
local/libidn 1.16-1
Implementation of the Stringprep, Punycode and IDNA specifications
local/libnice 0.0.11-1
An implementation of the IETF's draft ICE (for p2p UDP data streams)
local/libnl 1.1-1
Library for applications dealing with netlink sockets
local/libnotify 0.4.5-1.1
Desktop notification library
local/libproxy 0.2.3-1
A library that provides automatic proxy configuration management
local/libsasl 2.1.23-2
Cyrus Simple Authentication Service Layer (SASL) library
local/libtiff 3.9.2-2
Library for manipulation of TIFF images
local/libunique 1.1.6-2
Library for writing single instance applications
local/libusb 0.1.12-4 (base)
Library to enable user space application programs to communicate with USB devices
local/libvisual 0.4.0-2
Abstraction library that comes between applications and audio visualisation plugins
local/libxau 1.0.5-1
X11 authorisation library
local/libxfont 1.4.1-1
X11 font rasterisation library
local/libxkbfile 1.0.6-1
X11 keyboard file manipulation library
local/libxslt 1.1.26-1
XML stylesheet transformation library
local/logrotate 3.7.8-1 (base)
Rotates system logs automatically
local/mcpp 2.7.2-2
Matsui's CPP implementation precisely conformed to standards
local/mkinitcpio 0.6.3-1 (base)
Modular initramfs image creation utility
local/mono 2.6.3-1
Free implementation of the .NET platform including runtime and compiler
local/mono-addins 0.4-3
a generic framework for creating extensible applications and for creating libraries which extend those
applications
local/mozilla-common 1.4-1
Common Initialization Profile for Mozilla.org products
local/mpfr 2.4.2-2
Multiple-precision floating-point library
local/musicbrainz 2.1.5-3
The second generation incarnation of the CD Index
local/ncurses 5.7-2 (base)
System V Release 4.0 curses emulation library
local/ndesk-dbus 0.6.0-2
C# implementation of D-Bus
local/ndesk-dbus-glib 0.4.1-2
C# GLib implementation of D-Bus
local/net-tools 1.60-14 (base)
Configuration tools for Linux networking
local/notification-daemon 0.4.0-4 (gnome)
Notification daemon for the desktop notifications framework
local/pam 1.1.1-1 (base)
PAM (Pluggable Authentication Modules) library
local/parted 2.2-1
A program for creating, destroying, resizing, checking and copying partitions
local/pciutils 3.1.7-1 (base)
PCI bus configuration space access library and tools
local/polkit 0.96-2
Application development toolkit for controlling system-wide privileges
local/polkit-gnome 0.96-3
PolicyKit integration for the GNOME desktop
local/procinfo 19-3 (base)
Displays useful information from /proc
local/python-pysqlite 2.5.5-1
A Python DB-API 2.0 interface for the SQLite embedded relational database engine
local/rarian 0.8.1-1
Documentation meta-data library, designed as a replacement for Scrollkeeper.
local/seahorse 2.30.0-1 (gnome-extra)
GNOME application for managing PGP keys.
local/sound-juicer 2.28.2-1 (gnome-extra)
A cd ripper application
local/startup-notification 0.10-1
Monitor and display application startup
local/syslog-ng 3.1.0-1 (base)
Next-generation syslogd with advanced networking and filtering capabilities
local/t1lib 5.1.2-2
Library for generating character- and string-glyphs from Adobe Type 1 fonts
local/texinfo 4.13a-3 (base)
Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source
file
local/tomboy 1.2.0-2 (gnome-extra)
Desktop note-taking application for Linux and Unix
local/unixodbc 2.2.14-2
ODBC is an open specification for providing application developers with a predictable API with which
to access Data Sources
local/upower 0.9.2-2
Abstraction for enumerating power devices, listening to device events and querying history and
statistics
local/wpa_supplicant 0.6.10-2 (base)
A utility providing key negotiation for WPA wireless networks
local/xf86-video-ati 6.12.192-1 (xorg-video-drivers)
X.org ati video driver
local/xkeyboard-config 1.8-1
X keyboard configuration files
local/xorg-apps 7.5-3
Various X.Org applications
local/xorg-docs 1.5-1 (xorg)
X.org documentations
local/xorg-xauth 1.0.4-1
X.Org authorization settings program
local/xorg-xinit 1.2.1-1 (xorg)
X.Org initialisation program
-Qs xorg:
[voorhees@myhost ~]$ pacman -Qs xorg
local/xf86-input-acecad 1.4.0-1 (xorg-input-drivers)
X.Org acecad tablet input driver
local/xf86-input-aiptek 1.3.0-1 (xorg-input-drivers)
X.Org Aiptek USB Digital Tablet input driver
local/xf86-input-elographics 1.2.3-3 (xorg-input-drivers)
X.org Elographics TouchScreen input driver
local/xf86-input-evdev 2.3.2-1 (xorg-input-drivers)
X.org evdev input driver
local/xf86-input-fpit 1.3.0-3 (xorg-input-drivers)
X.Org Fujitsu Stylistic Tablet PC input driver
local/xf86-input-hyperpen 1.3.0-3 (xorg-input-drivers)
X.Org HyperPen Tablet input driver
local/xf86-input-joystick 1.5.0-1 (xorg-input-drivers)
X.Org Joystick input driver
local/xf86-input-keyboard 1.4.0-1 (xorg-input-drivers)
X.Org keyboard input driver
local/xf86-input-mouse 1.5.0-1 (xorg-input-drivers)
X.org mouse input driver
local/xf86-input-mutouch 1.2.1-4 (xorg-input-drivers)
X.org mutouch input driver
local/xf86-input-penmount 1.4.1-1 (xorg-input-drivers)
X.org penmount input driver
local/xf86-input-synaptics 1.2.1-1 (xorg-input-drivers)
synaptics driver for notebook touchpads
local/xf86-input-vmmouse 12.6.5-3 (xorg-input-drivers)
X.org VMWare Mouse input driver
local/xf86-input-void 1.3.0-1 (xorg-input-drivers)
X.org void input driver
local/xf86-video-ati 6.12.192-1 (xorg-video-drivers)
X.org ati video driver
local/xf86-video-vesa 2.3.0-1 (xorg xorg-video-drivers)
X.org vesa video driver
local/xorg-apps 7.5-3
Various X.Org applications
local/xorg-docs 1.5-1 (xorg)
X.org documentations
local/xorg-font-utils 7.5-2
X.Org font utilities
local/xorg-fonts-100dpi 1.0.1-3 (xorg)
X.org 100dpi fonts
local/xorg-fonts-75dpi 1.0.1-3 (xorg)
X.org 75dpi fonts
local/xorg-fonts-alias 1.0.2-1
X.org font alias files
local/xorg-fonts-encodings 1.0.3-1
X.org font encoding files
local/xorg-fonts-misc 1.0.1-1
X.org misc fonts
local/xorg-res-utils 1.0.3-3 (xorg)
X.Org X11 resource utilities
local/xorg-server 1.7.6-3 (xorg)
X.Org X servers
local/xorg-server-utils 7.5-3 (xorg)
X.Org utilities required by xorg-server
local/xorg-twm 1.0.4-3 (xorg)
Tab Window Manager for the X Window System
local/xorg-utils 7.6-1 (xorg)
Collection of client utilities used to query the X server
local/xorg-xauth 1.0.4-1
X.Org authorization settings program
local/xorg-xinit 1.2.1-1 (xorg)
X.Org initialisation program
local/xorg-xkb-utils 7.5-2
X.org keyboard utilities
local/xterm 256-1 (xorg)
X Terminal Emulator
Thanks again for any help -
I cannot get into my develop module on lightroom, it is telling me to "please renew my membershipto reactivate the develop module" I do not understand. I bought the software must I pay a membership as well ? Also I do not want to use lightroom mobile and it is trying to sync my photos. I use a MAC
Did you purchased the Full Perpetual License from Adobe for $149.00?, if so then what has happened is that you probably downloaded the Creative Cloud trial version which has now expired.
The license key for the perpetual version will not be accepted to activate the CC version.
Uninstall the existing Lightroom and then download the one available from the link below. The uninstall process will not affect your Catalog, Preferences or personal files but will just remove the application. Install the new download and you license key will be accepted.
Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.6
If this is not the situation you face then provide some more details. -
NullPointerException - Cannot get the value from variable f_cashGiven
In SubCheckout.java (a POS), what I want is when Payment button (f_cashPayment) is pressed, the action "Cash" is performed, get the value from Cash Given (f_cashGiven), do the subtraction and post the value as Cash Return (f_cashReturn). The code is filled in actionPerformed. But I cannot get the value by using f_cashGiven.getValue() from VNumber class. It returns NULL. This should be quite straight forward, but I do not know what is wrong. Please help!
Enclosed please find the source code of SubCheckout.java and VNumber.java
This is the code of SubCheckout.java :
* The contents of this file are subject to the Compiere License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* You may obtain a copy of the License at http://www.compiere.org/license.html
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
* The Original Code is Compiere ERP & CRM Smart Business Solution. The Initial
* Developer of the Original Code is Jorg Janke. Portions created by Jorg Janke
* are Copyright (C) 1999-2005 Jorg Janke.
* All parts are Copyright (C) 1999-2005 ComPiere, Inc. All Rights Reserved.
* Contributor(s): ______________________________________.
package org.compiere.pos;
import java.awt.*;
import java.awt.event.*;
import java.math.BigDecimal;
import javax.swing.border.*;
import org.compiere.grid.ed.*;
import org.compiere.swing.*;
import org.compiere.util.*;
* POS Checkout Sub Panel
* @author Jorg Janke
* @version $Id: SubCheckout.java,v 1.3 2005/03/11 20:28:22 jjanke Exp $
public class SubCheckout extends PosSubPanel implements ActionListener
* Constructor
* @param posPanel POS Panel
public SubCheckout (PosPanel posPanel)
super (posPanel);
} // PosSubCheckout
private CButton f_register = null;
private CButton f_summary = null;
private CButton f_process = null;
private CButton f_print = null;
private CLabel f_lcreditCardNumber = null;
private CTextField f_creditCardNumber = null;
private CLabel f_lcreditCardExp = null;
private CTextField f_creditCardExp = null;
private CLabel f_lcreditCardVV = null;
private CTextField f_creditCardVV = null;
private CButton f_cashPayment = null;
private CLabel f_lcashGiven = null;
private VNumber f_cashGiven = null;
private CLabel f_lcashReturn = null;
private VNumber f_cashReturn = null;
private CButton f_creditPayment = null;
/** Logger */
private static CLogger log = CLogger.getCLogger(SubCheckout.class);
* Initialize
public void init()
// Title
TitledBorder border = new TitledBorder(Msg.getMsg(Env.getCtx(), "Checkout"));
setBorder(border);
// Content
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = INSETS2;
// -- 0
gbc.gridx = 0;
f_register = createButtonAction("Register", null);
gbc.gridy = 0;
add (f_register, gbc);
f_summary = createButtonAction("Summary", null);
gbc.gridy = 1;
add (f_summary, gbc);
f_process = createButtonAction("Process", null);
gbc.gridy = 2;
add (f_process, gbc);
f_print = createButtonAction("Print", null);
gbc.gridy = 3;
add (f_print, gbc);
// -- 1 -- Cash
gbc.gridx = 1;
gbc.gridheight = 2;
gbc.fill = GridBagConstraints.BOTH;
gbc.weightx = .1;
CPanel cash = new CPanel(new GridBagLayout());
cash.setBorder(new TitledBorder(Msg.getMsg(Env.getCtx(), "Cash")));
gbc.gridy = 0;
add (cash, gbc);
GridBagConstraints gbc0 = new GridBagConstraints();
gbc0.insets = INSETS2;
gbc0.anchor = GridBagConstraints.WEST;
f_lcashGiven = new CLabel(Msg.getMsg(Env.getCtx(),"CashGiven"));
cash.add (f_lcashGiven, gbc0);
f_cashGiven = new VNumber("CashGiven", false, false, true, DisplayType.Amount,
Msg.translate(Env.getCtx(), "CashGiven"));
f_cashGiven.addActionListener(this);
f_cashGiven.setColumns(10, 25);
cash.add (f_cashGiven, gbc0);
f_cashGiven.setValue(Env.ZERO);
f_lcashReturn = new CLabel(Msg.getMsg(Env.getCtx(),"CashReturn"));
cash.add (f_lcashReturn, gbc0);
f_cashReturn = new VNumber("CashReturn", false, true, false, DisplayType.Amount,
"CashReturn");
f_cashReturn.setColumns(10, 25);
cash.add (f_cashReturn, gbc0);
f_cashReturn.setValue(Env.ZERO);
f_cashPayment = createButtonAction("Payment", null);
f_cashPayment.setActionCommand("Cash");
gbc0.anchor = GridBagConstraints.EAST;
gbc0.weightx = 0.1;
cash.add (f_cashPayment, gbc0);
// -- 1 -- Creditcard
CPanel creditcard = new CPanel(new GridBagLayout());
creditcard.setBorder(new TitledBorder(Msg.translate(Env.getCtx(), "CreditCardType")));
gbc.gridy = 2;
add (creditcard, gbc);
GridBagConstraints gbc1 = new GridBagConstraints();
gbc1.insets = INSETS2;
gbc1.anchor = GridBagConstraints.WEST;
gbc1.gridx = 0;
gbc1.gridy = 0;
f_lcreditCardNumber = new CLabel(Msg.translate(Env.getCtx(), "CreditCardNumber"));
creditcard.add (f_lcreditCardNumber, gbc1);
gbc1.gridy = 1;
f_creditCardNumber = new CTextField(18);
creditcard.add (f_creditCardNumber, gbc1);
gbc1.gridx = 1;
gbc1.gridy = 0;
f_lcreditCardExp = new CLabel(Msg.translate(Env.getCtx(),"CreditCardExp"));
creditcard.add (f_lcreditCardExp, gbc1);
gbc1.gridy = 1;
f_creditCardExp = new CTextField(5);
creditcard.add (f_creditCardExp, gbc1);
gbc1.gridx = 2;
gbc1.gridy = 0;
f_lcreditCardVV = new CLabel(Msg.translate(Env.getCtx(), "CreditCardVV"));
creditcard.add (f_lcreditCardVV, gbc1);
gbc1.gridy = 1;
f_creditCardVV = new CTextField(5);
creditcard.add (f_creditCardVV, gbc1);
gbc1.gridx = 3;
gbc1.gridy = 0;
gbc1.gridheight = 2;
f_creditPayment = createButtonAction("Payment", null);
f_creditPayment.setActionCommand("CreditCard");
gbc1.anchor = GridBagConstraints.EAST;
gbc1.weightx = 0.1;
creditcard.add (f_creditPayment, gbc1);
} // init
* Get Panel Position
public GridBagConstraints getGridBagConstraints()
GridBagConstraints gbc = super.getGridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 3;
return gbc;
} // getGridBagConstraints
* Dispose - Free Resources
public void dispose()
super.dispose();
} // dispose
* Action Listener
* @param e event
public void actionPerformed (ActionEvent e)
String action = e.getActionCommand();
if (action == null || action.length() == 0)
return;
log.info( "PosSubCheckout - actionPerformed: " + action);
if (e.getSource() == f_cashGiven) {
f_cashGiven.setValue(f_cashGiven.getValue());
System.out.println("f_cashGiven"+f_cashGiven.getDisplay());
// Register
// Summary
// Print
if (action.equals("Cash")) {
BigDecimal CashGiven, GrandTotal, CashReturn;
System.out.println("Cash given is "+f_cashGiven.getDisplay());
CashGiven = (BigDecimal)f_cashGiven.getValue();
GrandTotal = (BigDecimal)p_posPanel.f_curLine.getOrder().getGrandTotal();
CashReturn = CashGiven.subtract(GrandTotal);
f_cashReturn.setValue(CashReturn);
// Cash (Payment)
// CreditCard (Payment)
} // actionPerformed
} // PosSubCheckoutThis is the code of VNumber.java :
* The contents of this file are subject to the Compiere License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* You may obtain a copy of the License at http://www.compiere.org/license.html
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
* The Original Code is Compiere ERP & CRM Smart Business Solution. The Initial
* Developer of the Original Code is Jorg Janke. Portions created by Jorg Janke
* are Copyright (C) 1999-2005 Jorg Janke.
* All parts are Copyright (C) 1999-2005 ComPiere, Inc. All Rights Reserved.
* Contributor(s): ______________________________________.
package org.compiere.grid.ed;
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.math.*;
import java.text.*;
import java.util.logging.*;
import javax.swing.*;
import javax.swing.text.*;
import org.compiere.apps.*;
import org.compiere.model.*;
import org.compiere.swing.*;
import org.compiere.util.*;
* Number Control
* @author Jorg Janke
* @version $Id: VNumber.java,v 1.41 2005/09/03 01:57:16 jjanke Exp $
public final class VNumber extends JComponent
implements VEditor, ActionListener, KeyListener, FocusListener
/** Number of Columns (12) */
public final static int SIZE = 12;
* IDE Bean Constructor
public VNumber()
this("Number", false, false, true, DisplayType.Number, "Number");
} // VNumber
* Create right aligned Number field.
* no popup, if WindowNo == 0 (for IDs)
* @param columnName column name
* @param mandatory mandatory
* @param isReadOnly read only
* @param isUpdateable updateable
* @param displayType display type
* @param title title
public VNumber(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable,
int displayType, String title)
super();
super.setName(columnName);
m_columnName = columnName;
m_title = title;
setDisplayType(displayType);
LookAndFeel.installBorder(this, "TextField.border");
this.setLayout(new BorderLayout());
// this.setPreferredSize(m_text.getPreferredSize()); // causes r/o to be the same length
// int height = m_text.getPreferredSize().height;
// setMinimumSize(new Dimension (30,height));
// *** Text ***
m_text.setBorder(null);
m_text.setHorizontalAlignment(JTextField.TRAILING);
m_text.addKeyListener(this);
m_text.addFocusListener(this);
// Background
setMandatory(mandatory);
this.add(m_text, BorderLayout.CENTER);
// *** Button ***
m_button.setIcon(Env.getImageIcon("Calculator10.gif"));
m_button.setMargin(new Insets(0, 0, 0, 0));
m_button.setFocusable(false);
m_button.addActionListener(this);
this.add (m_button, BorderLayout.EAST);
// Prefereed Size
this.setPreferredSize(this.getPreferredSize()); // causes r/o to be the same length
// Size
setColumns(SIZE, CComboBox.FIELD_HIGHT-4);
// ReadWrite
if (isReadOnly || !isUpdateable)
setReadWrite(false);
else
setReadWrite(true);
} // VNumber
* Dispose
public void dispose()
m_text = null;
m_button = null;
m_mField = null;
} // dispose
* Set Document
* @param doc document
protected void setDocument(Document doc)
m_text.setDocument(doc);
} // getDocument
private String m_columnName;
protected int m_displayType; // Currency / UoM via Context
private DecimalFormat m_format;
private String m_title;
private boolean m_setting;
private String m_oldText;
private String m_initialText;
private boolean m_rangeSet = false;
private Double m_minValue;
private Double m_maxValue;
private boolean m_modified = false;
/** The Field */
private CTextField m_text = new CTextField(SIZE); // Standard
/** The Button */
private CButton m_button = new CButton();
private MField m_mField = null;
/** Logger */
private static CLogger log = CLogger.getCLogger(VNumber.class);
* Set no of Columns
* @param columns columns
public void setColumns (int columns, int height)
m_text.setPreferredSize(null);
m_text.setColumns(columns);
Dimension size = m_text.getPreferredSize();
if (height > size.height) // default 16
size.height = height;
if (CComboBox.FIELD_HIGHT-4 > size.height)
size.height = VLookup.FIELD_HIGHT-4;
this.setPreferredSize(size); // causes r/o to be the same length
this.setMinimumSize(new Dimension (columns*10, size.height));
m_button.setPreferredSize(new Dimension(size.height, size.height));
} // setColumns
* Set Range with min & max
* @param minValue min value
* @param maxValue max value
* @return true, if accepted
public boolean setRange(Double minValue, Double maxValue)
m_rangeSet = true;
m_minValue = minValue;
m_maxValue = maxValue;
return m_rangeSet;
} // setRange
* Set Range with min & max = parse US style number w/o Gouping
* @param minValue min value
* @param maxValue max value
* @return true if accepted
public boolean setRange(String minValue, String maxValue)
if (minValue == null || maxValue == null)
return false;
try
m_minValue = Double.valueOf(minValue);
m_maxValue = Double.valueOf(maxValue);
catch (NumberFormatException nfe)
return false;
m_rangeSet = true;
return m_rangeSet;
} // setRange
* Set and check DisplayType
* @param displayType display type
public void setDisplayType (int displayType)
m_displayType = displayType;
if (!DisplayType.isNumeric(displayType))
m_displayType = DisplayType.Number;
m_format = DisplayType.getNumberFormat(displayType);
m_text.setDocument (new MDocNumber(displayType, m_format, m_text, m_title));
} // setDisplayType
* Set ReadWrite
* @param value value
public void setReadWrite (boolean value)
if (m_text.isReadWrite() != value)
m_text.setReadWrite(value);
if (m_button.isReadWrite() != value)
m_button.setReadWrite(value);
// Don't show button if not ReadWrite
if (m_button.isVisible() != value)
m_button.setVisible(value);
} // setReadWrite
* IsReadWrite
* @return true if rw
public boolean isReadWrite()
return m_text.isReadWrite();
} // isReadWrite
* Set Mandatory (and back bolor)
* @param mandatory mandatory
public void setMandatory (boolean mandatory)
m_text.setMandatory(mandatory);
} // setMandatory
* Is it mandatory
* @return true if mandatory
public boolean isMandatory()
return m_text.isMandatory();
} // isMandatory
* Set Background
* @param color color
public void setBackground(Color color)
m_text.setBackground(color);
} // setBackground
* Set Background
* @param error error
public void setBackground (boolean error)
m_text.setBackground(error);
} // setBackground
* Set Foreground
* @param fg foreground
public void setForeground(Color fg)
m_text.setForeground(fg);
} // setForeground
* Set Editor to value
* @param value value
public void setValue(Object value)
log.finest("Value=" + value);
if (value == null)
m_oldText = "";
else
m_oldText = m_format.format(value);
// only set when not updated here
if (m_setting)
return;
m_text.setText (m_oldText);
m_initialText = m_oldText;
m_modified = false;
} // setValue
* Property Change Listener
* @param evt event
public void propertyChange (PropertyChangeEvent evt)
if (evt.getPropertyName().equals(org.compiere.model.MField.PROPERTY))
setValue(evt.getNewValue());
} // propertyChange
* Return Editor value
* @return value value (big decimal or integer)
public Object getValue()
if (m_text == null || m_text.getText() == null || m_text.getText().length() == 0)
return null;
String value = m_text.getText();
// return 0 if text deleted
if (value == null || value.length() == 0)
if (!m_modified)
return null;
if (m_displayType == DisplayType.Integer)
return new Integer(0);
return Env.ZERO;
if (value.equals(".") || value.equals(",") || value.equals("-"))
value = "0";
try
Number number = m_format.parse(value);
value = number.toString(); // converts it to US w/o thousands
BigDecimal bd = new BigDecimal(value);
if (m_displayType == DisplayType.Integer)
return new Integer(bd.intValue());
if (bd.signum() == 0)
return bd;
return bd.setScale(m_format.getMaximumFractionDigits(), BigDecimal.ROUND_HALF_UP);
catch (Exception e)
log.log(Level.SEVERE, "Value=" + value, e);
if (m_displayType == DisplayType.Integer)
return new Integer(0);
return Env.ZERO;
} // getValue
* Return Display Value
* @return value
public String getDisplay()
return m_text.getText();
} // getDisplay
* Get Title
* @return title
public String getTitle()
return m_title;
} // getTitle
* Plus - add one.
* Also sets Value
* @return new value
public Object plus()
Object value = getValue();
if (value == null)
if (m_displayType == DisplayType.Integer)
value = new Integer(0);
else
value = Env.ZERO;
// Add
if (value instanceof BigDecimal)
value = ((BigDecimal)value).add(Env.ONE);
else
value = new Integer(((Integer)value).intValue() + 1);
setValue(value);
return value;
} // plus
* Minus - subtract one, but not below minimum.
* Also sets Value
* @param minimum minimum
* @return new value
public Object minus (int minimum)
Object value = getValue();
if (value == null)
if (m_displayType == DisplayType.Integer)
value = new Integer(minimum);
else
value = new BigDecimal(minimum);
setValue(value);
return value;
// Subtract
if (value instanceof BigDecimal)
BigDecimal bd = ((BigDecimal)value).subtract(Env.ONE);
BigDecimal min = new BigDecimal(minimum);
if (bd.compareTo(min) < 0)
value = min;
else
value = bd;
else
int i = ((Integer)value).intValue();
i--;
if (i < minimum)
i = minimum;
value = new Integer(i);
setValue(value);
return value;
} // minus
* Action Listener
* @param e event
public void actionPerformed (ActionEvent e)
log.config(e.getActionCommand());
if (ValuePreference.NAME.equals(e.getActionCommand()))
if (MRole.getDefault().isShowPreference())
ValuePreference.start (m_mField, getValue());
return;
if (e.getSource() == m_button)
m_button.setEnabled(false);
String str = startCalculator(this, m_text.getText(), m_format, m_displayType, m_title);
m_text.setText(str);
m_button.setEnabled(true);
try
fireVetoableChange (m_columnName, m_oldText, getValue());
catch (PropertyVetoException pve) {}
m_text.requestFocus();
} // actionPerformed
* Key Listener Interface
* @param e event
public void keyTyped(KeyEvent e) {}
public void keyPressed(KeyEvent e) {}
* Key Listener.
* - Escape - Restore old Text
* - firstChange - signal change
* @param e event
public void keyReleased(KeyEvent e)
log.finest("Key=" + e.getKeyCode() + " - " + e.getKeyChar()
+ " -> " + m_text.getText());
// ESC
if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
m_text.setText(m_initialText);
m_modified = true;
m_setting = true;
try
if (e.getKeyCode() == KeyEvent.VK_ENTER) // 10
fireVetoableChange (m_columnName, m_oldText, getValue());
fireActionPerformed();
else // indicate change
fireVetoableChange (m_columnName, m_oldText, null);
catch (PropertyVetoException pve) {}
m_setting = false;
} // keyReleased
* Focus Gained
* @param e event
public void focusGained (FocusEvent e)
if (m_text != null)
m_text.selectAll();
} // focusGained
* Data Binding to MTable (via GridController.vetoableChange).
* @param e event
public void focusLost (FocusEvent e)
// log.finest(e.toString());
// APanel - Escape
if (e.getOppositeComponent() instanceof AGlassPane)
m_text.setText(m_initialText);
return;
try
fireVetoableChange (m_columnName, m_initialText, getValue());
fireActionPerformed();
catch (PropertyVetoException pve) {}
} // focusLost
* Invalid Entry - Start Calculator
* @param jc parent
* @param value value
* @param format format
* @param displayType display type
* @param title title
* @return value
public static String startCalculator(Container jc, String value,
DecimalFormat format, int displayType, String title)
log.config("Value=" + value);
BigDecimal startValue = new BigDecimal(0.0);
try
if (value != null && value.length() > 0)
Number number = format.parse(value);
startValue = new BigDecimal (number.toString());
catch (ParseException pe)
log.info("InvalidEntry - " + pe.getMessage());
// Find frame
Frame frame = Env.getFrame(jc);
// Actual Call
Calculator calc = new Calculator(frame, title,
displayType, format, startValue);
AEnv.showCenterWindow(frame, calc);
BigDecimal result = calc.getNumber();
log.config( "Result=" + result);
calc = null;
if (result != null)
return format.format(result);
else
return value; // original value
} // startCalculator
* Set Field/WindowNo for ValuePreference
* @param mField field
public void setField (MField mField)
m_mField = mField;
if (m_mField != null
&& MRole.getDefault().isShowPreference())
ValuePreference.addMenu (this, popupMenu);
} // setField
* Remove Action Listner
* @param l Action Listener
public void removeActionListener(ActionListener l)
listenerList.remove(ActionListener.class, l);
} // removeActionListener
* Add Action Listner
* @param l Action Listener
public void addActionListener(ActionListener l)
listenerList.add(ActionListener.class, l);
} // addActionListener
* Fire Action Event to listeners
protected void fireActionPerformed()
int modifiers = 0;
AWTEvent currentEvent = EventQueue.getCurrentEvent();
if (currentEvent instanceof InputEvent)
modifiers = ((InputEvent)currentEvent).getModifiers();
else if (currentEvent instanceof ActionEvent)
modifiers = ((ActionEvent)currentEvent).getModifiers();
ActionEvent ae = new ActionEvent (this, ActionEvent.ACTION_PERFORMED,
"VNumber", EventQueue.getMostRecentEventTime(), modifiers);
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
// Process the listeners last to first, notifying those that are interested in this event
for (int i = listeners.length-2; i>=0; i-=2)
if (listeners==ActionListener.class)
((ActionListener)listeners[i+1]).actionPerformed(ae);
} // fireActionPerformed
} // VNumberIf getValue() returns null, you need to trace the execution of the code and figure out which sequence of code is leading to the return of null. This method looks complex - a lot of if statements. If you do not have a debugger, put System.out.println statements inside the method to figure out what's going on.
Maybe you are looking for
-
Hello, I keep getting this message in my iTunes on my iMac. this computer is already associated with an apple ID Everything I have lookedup says I need to wait 83 days. I'm not understanding why this is the case. I have an iMac, an iPad and iPhone
-
Update to 7.1 issues - error: can't save backup to computer.
I've done all updates - iOS updated. Security updated. everything is updated. But I continue to get the same error message. Apple site tells me to "configure my security settings". I haven't a clue how to do that - I'm a basic mac user. Not a pr
-
Determining name of failed target in a notification script.
I have a job which is being run against many database targets. I have a notification script which is called when a job fails, however I cannot see any environment variable which informs me against which particular target the job fails. All I see in t
-
Error When Creating/Inserting New Marketing Attribute Value
Merry Christmas & Happy New Year, Need help here, when I create/insert new marketing attribute value in existing marketing attribute, I encounter the following error "The values currently maintained lead to inconsistencies in the database". In the de
-
I had to erase my volume where the itunes was stored. I still have everything on my ipod. How can I import them back to my itunes on my mac. I don't want to erase anything on my ipod.